VB6 Executable return code
Is it possible to let a VB executable give a return code. So, if my program runs correctly, the executable returns 0 and if there is an error it returns 1, for example.
I need this because my VB program is a batch program that is started from an AVAS (Siemens) scheduler. The scheduler needs to know if the program has run correctly (which it can tell by checking the return code of the program) before it can continue executing the other programs in the batch process.
Thanks in advance for your help.