D
Darkman
Hi,
I am wondering how you multi-dimension an array function?
My declared function looks like this:
Public Function GetCustomerList(ByVal Val1 As String, ByVal Val2 As Long,
ByVal Val3 As String) As String()
Previously I dimensioned a single dimension Array to the size I wanted and
then just set the value of my function from this new Array.
Now I need to set a multi-dimension Array because I am reading more than one
record into the Array.
When I try to set the value of my function with the new muti-dimension Array
I get an error:
Value of type '2-dimensional array of String' cannot be converted to
'1-dimensional array of String' because the array types have different
numbers of dimensions.
Can anyone please provide assistance as to how to multi-dimension the
Function Array while still having the input parameters.
Thanks
I am wondering how you multi-dimension an array function?
My declared function looks like this:
Public Function GetCustomerList(ByVal Val1 As String, ByVal Val2 As Long,
ByVal Val3 As String) As String()
Previously I dimensioned a single dimension Array to the size I wanted and
then just set the value of my function from this new Array.
Now I need to set a multi-dimension Array because I am reading more than one
record into the Array.
When I try to set the value of my function with the new muti-dimension Array
I get an error:
Value of type '2-dimensional array of String' cannot be converted to
'1-dimensional array of String' because the array types have different
numbers of dimensions.
Can anyone please provide assistance as to how to multi-dimension the
Function Array while still having the input parameters.
Thanks