Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an Array
Message
De
06/10/2003 18:28:56
 
 
À
06/10/2003 14:41:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00835464
Message ID:
00835570
Vues:
8
A bit of explanation may help. By default, parameters are passed by reference when making a procedure call:
DO MyProc WITH Var1, Var2
DO MyForm WITH Var3, Var4
and by value when making a function call:
? MyProc(Var1, Var2)
If you want to pass parameters by reference to a procedure call, use parenthesis
DO MyProc WITH (Var1), (Var2)
or with the @ symbol for functions
? MyProc(@Var1, @Var2)
You can switch the defaults globally with SET UDFPARM.


>Hi Sergey,
>
>How simple. Thanks!
>
>Mike
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform