User Tools

Site Tools


en:onerror

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:onerror [2016/08/13 12:36]
admin
en:onerror [2016/08/13 12:38]
admin
Line 2: Line 2:
  
 ==== Format ==== ==== Format ====
-**onerror** [[labelprogamsyntax|label]]+**onerror** [[labelprogramsyntax|label]]
  
 ==== Description ==== ==== Description ====
-Causes the [[GosubReturn|Gosub]] at [[labelprogamsyntax|label]] to be executed when a runtime error occurs.  Program control may be resumed at the next statement with a [[GosubReturn|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|OffError]] will be the active one.+Causes the [[GosubReturn|Gosub]] at [[labelprogramsyntax|label]] to be executed when a runtime error occurs.  Program control may be resumed at the next statement with a [[GosubReturn|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|OffError]] will be the active one.
  
 You may not execute an OnError statement inside a [[Try|Try / Catch / End Try]] statement. You may not execute an OnError statement inside a [[Try|Try / Catch / End Try]] statement.
en/onerror.txt ยท Last modified: 2020/02/28 10:46 (external edit)