Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get a VFP exe to return a return code
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How can I get a VFP exe to return a return code
Miscellaneous
Thread ID:
00126877
Message ID:
00126877
Views:
133
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
Next
Reply
Map
View

Click here to load this message in the networking platform