Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array as parameter
Message
From
21/02/2001 21:34:10
 
 
To
21/02/2001 20:11:21
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00478253
Message ID:
00478269
Views:
21
>HI,
>I would like to kow How i can pass a local array as a parameter.
>
>Dim X(65) As MyType
>
>LoadMyArray(X) ??
>...
>
>Private Sub LoadMyArray(X As MyType) ??
>
>
>Also, I should mention that these procedures are part of class.
>
>Thank you for your help,
>
>Christian Cote

Should work. Although the correct calling syntax is:

LoadMyArray x
..or
LoadMyArray x()

and the correct declaration would be:

Private Sub LoadMyArray(x() As MyType)
Previous
Reply
Map
View

Click here to load this message in the networking platform