Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array as parameter
Message
De
21/02/2001 21:34:10
 
 
À
21/02/2001 20:11:21
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Québec, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00478253
Message ID:
00478269
Vues:
22
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform