How can I pass a 2d array to a function?

trend

Centurion
Joined
Oct 12, 2004
Messages
171
Visual Basic:
private function one()
Dim words(50,2) as string

Call two(word)
end function

Private Function two(byval two() as string)

End Function

That is essentially what I want to do.. but the problem arrises on how I accept a 2d array in a function.. aka like:
private funtion two(byval two() as string) creates a problem..

So how do I pass 2d arrays to functions?

thanks!
 
Visual Basic:
private function one()
    Dim words(50,2) as string
 
    Call two(word)
end function
 
Private Function two(byval two(,) as string)
    'Note the comma
End Function
 
Are you kidding! That is it!! I have been beating my head for a wile on this problem.. what a nice solution :)

thanks!
 
Back
Top