Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture a return value from DO PROGRAM
Message
 
 
To
12/08/1998 13:27:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00126101
Message ID:
00126122
Views:
22
Jim,

You can just call a prg or app like a function:

uRetVal = TheApp()
uRetVal = TheProgram()

whatever they RETURN at the end of their code will get put into uRetVal. It doesn't matter if the first line is FUNCTION or PROCEDURE the can both return values, but you have to make a function call to get the value returned.

>How can I capture a return value from an .app or .prg with the DO PROGRAM without passing parameters? I can't find anything in the flavor of DO SCREEN TO MYVAR to capture a return value.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform