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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement