@NasaCow Search can't find ON EXIT anywhere in your code you posted.
This is what I do find:
Does not look good to set ExitFlag Twice nor putting Shutdown on Timer.
When you know the user wants to quit from _Exit then you run the save work code if not saved and quit or just quit if work already saved.
I don't see need for Timer sub here.
This is what I do find:
Code: (Select All)
'Disabling the default exit routinue
ExitFlag = EXIT
ON TIMER(1) GOSUB ShutDown
TIMER ON
Code: (Select All)
ShutDown:
ExitFlag = EXIT
IF ExitFlag THEN SYSTEM
RETURN
Does not look good to set ExitFlag Twice nor putting Shutdown on Timer.
When you know the user wants to quit from _Exit then you run the save work code if not saved and quit or just quit if work already saved.
I don't see need for Timer sub here.
b = b + ...