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
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How can I get a VFP exe to return a return code
Divers
Thread ID:
00126877
Message ID:
00126877
Vues:
142
I have a need that requires a VFP exe to return a so-called "ERRORLEVEL" value.

I have performed the following but it does not work:

*-- My exe's initial prg looks something like this

SET SYSMENU TO
SET EXCLUSIVE OFF
SET CENTURY ON

PUBLIC m.gnRetCode && Global return code
m.gnRetCode = 0 && Initialize return code

DO FORM frmTest && Global code will be set here
*-- The Form will execute CLEAR EVENTS upon completion

READ EVENTS

*-- I am assuming this is the way to return the ERROR LEVEL
RETURN( m.gnRetCode )

Thanks in advance
Juan L. Romero
gcandela@javanet.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform