end program from a module function

BlitzMax Forums/BlitzMax Module Tweaks/end program from a module function

ziggy(Posted 2006) [#1]
Is there any way to end the calling program execution from within a module call? I need to avoid calling programs execution when there's a security violation in the program using my module, and I don't want to make it throwing errors that can be handled...
Any way to do that?


Dreamora(Posted 2006) [#2]
simply call "end" :-)

Will end the program.

Or "runtime error" so the user knows why it broke.


ziggy(Posted 2006) [#3]
End will not end the program execution when it's called from inside a method, in a class, in a module. I don't know why, but it doesn't end program's execution!
I've made some test, and now it works... mmm.... I need to sleep... hehehe stupid me...


Dreamora(Posted 2006) [#4]
Looks so ;-)
Happy it worked.