
pass an array as function/sub argument
Quote:
> how to pass an array as an argument to the function/sub
> procedure??
> Sub Main()
> Dim X(5) As Integer
> 'do something on X
> '2 attempts: but compile errors
> printArray(X)
> printArray((X))
> End Sub
> Private Sub printArray(param1() As Integer)
> 'do something on array param1
> End Sub
Both versions work well. The extra brackets are superfluous, the result is
the same.
BTW, this is not a question for microsoft.public.vb.controls
--
Armin