How to return exit code from Application

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This is just a guess, ok.

But cannot you use Return to leave the program?

Ok so this wont work if you return from within a function. But if its in the main program doesnt it return that value?
Print 15
Return 20
Print 22
Id have a look to see if it does return the value. But I have no idea how to ;(