Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variables
Message
 
 
À
05/03/2002 15:20:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00628631
Message ID:
00628634
Vues:
12
>I forget, how do you pass a parameter by value or reference. I thought by maybe adding the @ sign.
>
>
>Thanks ahead of time!!!

Without messing with the UDFParams command, the following is true:

Passing by reference
do myprg with lvar1, lvar2 - always byref
myprg(@lvar1, @lvar1) - always byref

Passing by Value
do myprg with (lvar1), (lvar2) - always byval
myprg((lvar1), (lvar2)) - always byval

myprg(lvar1, lvar2) - depends on SET UDFPARAMS setting

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform