L
Lee Gillie
I have a console application. It has a FUNCTION MAIN AS INTEGER. When it exits I want to return a program completion code to the OS.
I've coded the end of my MAIN as:
ProgramExitStatus = 10
Environment.ExitCode = ProgramExitStatus
Environment.Exit(ProgramExitStatus)
Return ProgramExitStatus
But in the IDE I see this:
The program '[1820] MyConsoleApp.exe' has exited with code 0 (0x0).
Is there a way that really works?
I've coded the end of my MAIN as:
ProgramExitStatus = 10
Environment.ExitCode = ProgramExitStatus
Environment.Exit(ProgramExitStatus)
Return ProgramExitStatus
But in the IDE I see this:
The program '[1820] MyConsoleApp.exe' has exited with code 0 (0x0).
Is there a way that really works?