Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning variables to the calling program?
Message
 
 
À
08/07/2000 17:54:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00389878
Message ID:
00389883
Vues:
13
>Can someone give me an example of how to pass variables back to the the calling program. I can pass variables to the program with do with command and LPARAMETERS in the called program. But when I use the return command with the variable in it my program that it returns to doesn't see the variables. Does the next statment after the do command have to have Lparameters in it?
>
> Kelly

Kelly,
You can not use the DO ... WITH syntax when you want a return value. Call the program using the function syntax.

myvar = program1(myvariable)

The return value will be stored in myvar.
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