Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return a result from a external program
Message
De
30/07/1998 10:54:41
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00122635
Message ID:
00122691
Vues:
16
>>I need to run an external program from within FoxPro 2.6 for Windows application and get a return value from the program to know whether it was successful or not. I can use the RUN command to run the program, the program returns a value upon exit, but how do I get that value into FoxPro?
>>
>>Shane
>
>Can you write the result of the program to a file of some sort and have FP read the file when it appears?
>
>
>Wayne

Yes I can do it that way, but I wanted to just pass the exit code to FoxPro, but I don't think I can. I am playing with using an environment variable now, if that doesn't work I'll just create a text file with the result.
--Shane
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform