Question Returning a multidimension array from a function

SylleRylle

Member
Joined
Feb 16, 2010
Messages
6
Programming Experience
1-3
Hi!

I have a function that fills an array.
I'm having trouble finding out how define this function so I can return the array.
Right now I am defining the returnobject as 'object' but I would like to do it properly.
The Function goes something like this:

Public function Return_Array(ALotOfData) as object
Dim Changelist(1,0) as string
*** Fill the Changelist with a lot of two dimension data ***
*** Like Changelist(0,i) = "blah" ***
***And Changelist(1,i) = "BlahType" ***
Return_Array = Changelist
End Function


Thanks.
 
How about this?

VB.NET:
    Public Function ReturnArray(ByVal pData As String) As Array
        Dim ChangeList(1, 0) As String

        Return ChangeList
    End Function
 
VB.NET:
Function DoSomething [B]As String(,)[/B]

End Function
 
Back
Top