Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture a return value from DO PROGRAM
Message
 
 
À
12/08/1998 13:27:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00126101
Message ID:
00126122
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform