How to return exit code from Application

BlitzMax Forums/BlitzMax Beginners Area/How to return exit code from Application

You could store your exit value into a global variable and then
have OnEnd( ) call a custom function that simply returns that global variable.

Not sure if that'd actually return the value to the OS though.