Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return values from Visual Foxpro Executables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00377771
Message ID:
00385599
Vues:
17
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
Fil
Voir

Click here to load this message in the networking platform