Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get a VFP exe to return a return code
Message
De
16/08/1998 06:01:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
14/08/1998 16:11:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00126877
Message ID:
00127193
Vues:
25
>>*-- I am assuming this is the way to return the ERROR LEVEL
>>RETURN( m.gnRetCode )
>>
>
>Instead of QUIT/CANCEL/RETURN to exit from VFP, add the following code:
>
>

>
>DECLARE ExitProcess IN Win32API INTEGER ExitCode
>
>After closing down everything, execute the following line of code:
>
> =ExitProcess(nReturnCode)
>
>where nReturnCode is the error level you want to return.

This question was asked several times here, and this is the first time (AFAIK) there was a good answer to it. Could you post a FAQ on this, for the benefit of generations to come?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform