Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning variables to the calling program?
Message
De
10/07/2000 20:17:36
 
 
À
09/07/2000 22:12:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00389878
Message ID:
00390553
Vues:
9
>Yes I wonder why Microsoft made VFP difficult to pass more then 1 variables with the return command.

It may not be the greatest programming technique, and requires that the variables are declared before you use call the form, function, procedure , method or whatever, but if you declare your variables private (not local) - which is the default anyway - in your calling code, then the variables can be accessed in the called procedure and any changes there will remain when the called procedure is concluded or form is closed. Parameters do not need to be 'passed' in this case.

David
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform