Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture a return value from DO PROGRAM
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00126101
Message ID:
00126636
Vues:
23
>>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.
>
>George & David have the right answer about PRGS/Functions returning a value, but is your 'DO SCREEN' referring to a form instead of a program? If so, the called form needs to be modal, but it will return a single value to the calling form.

Actually this was asked of me by another developer (honestly :-). I should have thought it through before posting the question to the UT. After looking at his problem I found out that he had a function call that was crashing in an app (turns out he didn't have it included in the build) so he replaced it with a DO pROGRAM and a hard coded path. He didn't want want to modify the function to pass the parameters, that's how he ended up with the DO program.

My bad. I'll know better to think more about a question before posting it.

Thanks for your time.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform