Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing by Reference
Message
De
22/04/2004 16:43:26
 
 
À
22/04/2004 16:38:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00897358
Message ID:
00897375
Vues:
12
>I need to know because the method being called may or may not have a certain parameter passed in by reference, and this method may call another method in which I would like to know if that parameter is passed in by reference so I know whether or not to pass it into the next method by reference. Make sense??

One way to achieve what you want is just to pass another parameter that says whether the first one was passed by reference:
* Function calls:
=MyFunc(SomeParameter, .F.)
=MyFunc(@SomeParameter, .T.)

FUNCTION MyFunc
LPARAMETERS ;
  tuSomeParameter, ;
  tlWasPassedByReference
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform