===== OnError =====

==== Format ====
**onerror** //label//

==== Description ====
Causes the subroutine at //label// to be executed when an runtime error occurs.  Program control may be resumed at the next statement with a [[gosubreturn|Return]] statement in the subroutine.

==== Example ====

See example of usage on [[Errorcodes|Error Codes]] page.

==== See Also ====
[[Errorcodes|Error Codes]], [[Lasterror|Lasterror]], [[Lasterrorextra|Lasterrorextra]], [[Lasterrorline|Lasterrorline]], [[Lasterrormessage|Lasterrormessage]], [[Offerror|Offerror]]

==== New To Version ==== 
0.9.6z
