Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Codes from Visual Basic EXE
Message
From
03/03/2000 00:16:35
 
 
To
02/03/2000 14:39:30
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00340795
Message ID:
00341083
Views:
21
>Howdy;
>Does anyone know how to return a code to a calling program from a Visual Basic exe?
>My problem is this. SQLServer 7 has a feature called Scheduled Tasks which allows a user to execute either stored procedures or command line calls at pre-determinded times. It also allows for several steps to be in each Task. If one of these steps fails, you can stop the Task from continuing. We've used this extensively with stored procedures, and it works great. Just use the "Return #" line in you stored procedure to return an integer. Now, we're calling a standalone VB exe, and we need to know if it finished properly. How can I pass back a return code? Thanks a bunch,

You can always call the Win32 API ExitProcess() function with a value other than 0 or 259 to close down the app.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform