Run all OnEnd hooks without ending?
BlitzMax Forums/BlitzMax Programming/Run all OnEnd hooks without ending?
| ||
Is it possible to call all the functions associated with OnEnd, without actually calling the End() function? |
| ||
No But you could save all the OnEnd functions into an own handling list which you use to call all of them. |
| ||
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 ;) ) |