By pressing the button the user can opt to stop the routine (command StartMessages) that shows the messages.
This works fine until the user leaves a card without stopping this routine by pressing that button (and the user should not have to).
Because the command (handler) is stil running it goes into an error because the objects it refers to are not available anymore.
My question is: How can I stop the running of this command (handler) from the "on closeCard'' handler before I leave the card to prevent errors?
e.g. tried:
Code: Select all
Send "Exit StartMessages" to StartMessages
While running of-course i get the following error.
card "TheCardName": execution error at line 51 (Chunk: error in object expression) near "StartMessages", char 1
Regards,
Paul