Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return values from Visual Foxpro Executables
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00377771
Message ID:
00385599
Views:
16
Barbara

Thanks for the reply. Unfortunately, it was not as simple as you suggested but you put us on the correct path. The solution in the end was :

DECLARE ExitProcess IN ('kernel32') LONG lngERRNO


? 'this program returns 1 to errorlevel'
? 'waiting for 60 seconds'
=inkey(60)
=ExitProcess (1)

Thanks for you help

Satish


>>Does anyone know if VFP can return a value when the application terminates, like the final part of a 'C' program may have return(0) or return(1).
>>We have a client who is using a scheduler and wants to have a line like :
>> if ourvfpprogram.exe > 1
>> && continue
>> else
>> && do something else
>> endif
>
>Sure. You can just send something back with the final RETURN, just like you would anywhere else.
Previous
Reply
Map
View

Click here to load this message in the networking platform