Run all OnEnd hooks without ending?

BlitzMax Forums/BlitzMax Programming/Run all OnEnd hooks without ending?

JoshK(Posted 2006) [#1]
Is it possible to call all the functions associated with OnEnd, without actually calling the End() function?


Dreamora(Posted 2006) [#2]
No

But you could save all the OnEnd functions into an own handling list which you use to call all of them.


Damien Sturdy(Posted 2006) [#3]
OnEnd EndProgram()


'.....
Function EndProgram()
'Do Stuff Here!
End Function


Simple, Da?

The program will end when the user wishes as normal, calling EndProgram() before ending.

You can now call EndProgram() however, which does the same thing without exiting! :)

(I'm going to assume this isn't what you meant though ;) )