This is an old revision of the document!
onerror label
Causes the Gosub at label to be executed when a runtime error occurs. Program control may be resumed at the next statement with a Return statement in the subroutine. Error traps are kept in a stack so that the last defined trap, that has not been removed with an OffError will be the active one.
You may not execute an OnError statement inside a Try / Catch / End Try statement.
See example of usage on Error Codes and ThrowError pages.
0.9.6z | New To Version |
1.99.99.33 | Removed the ability to use a subroutine for error trapping |