FlameDuck #1 I could not believe, that BlitzMax does not have a function like "System.exit(value)" because you should have your function return control all the way back to your 'main' program - which returns the value.