Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning variables to the calling program?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00389878
Message ID:
00389883
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform