Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameter by reference
Message
De
08/09/2011 08:20:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01522925
Message ID:
01522994
Vues:
56
Ok. but Array can only be passed by reference. Otherwise, only the first cell is passed to the parameter (if I recall correctly.)

>The answer is No unless it's an array.
>
>>Does anyone know of a way to determine if a variable has been passed to a function by reference or by value. This is a run-time question.
>>For example:
>>
>>local a
>>a='test'
>>=Test(@a)
>>=Test(a)
>>
>>procedure Text
>>lparameter b
>>*-- here, i would like to verify that the variable 'a' was passed to 'b' as by reference.
>>...
>>
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform