Toshiba KB-80 Computer Keyboard User Manual


 
- 51 -
ON ERROR
Function Declares that the interrupt for the error process is enabled, and declares the line
number of the subroutine to be executed when an error occurs.
Format ON ERROR GOTO <line number>
Term <line number>: The first line number of the subroutine for the error process
Explanation When an error interrupt is enabled by this statement, the subroutine specified in <line
number> is executed for all errors including the command level state (in the direct
mode). If <line number> is not specified, an “Undefined line number” error occurs.
To disable an error interrupt, “ON ERROR GOTO 0” should be executed.
To resume executing the program after the error message is displayed, the RESUME
statement should be used.