Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass array as a parameter
Message
De
16/11/2004 15:35:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00961882
Message ID:
00961909
Vues:
9
>Hi Fred,
>
>Thanks for your help.
>
>I don't know how to link my previous reply so I'll copy my message here.
>
>I experimented a bit further and oddly enough I noticed that the command
>
DO FORM OrderSelect WITH -1, laOrderIDs
>does actually pass the whole array. That’s good but I thought it didn’t work this way. Is this reliable?

Yes. Parameters are pass to DO type commands by reference by default. If you need to pass as a value, enclose the parameter in parenthesis. Parameters passed to functions are passed by value by default. That's why if you need a parameter to be by reference to a function, you need to precede it with "@".
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform