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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only