Toshiba KB-80 Computer Keyboard User Manual


 
- 62 -
RESUME
Function Terminates an error process, and resumes execution of the program.
Format RESUME [0]
NEXT
<line number>
Term <line number>: The line number from which the execution of the program is
resumed should be specified.
Explanation The subroutine defined by the ON ERROR statement processes an error which
occurs while the program is being executed. The RESUME statement is used as the
termination declaration of the subroutine.
Three options can be selected from for the RESUME statement, where the execution
is returned when the process is terminated.
1) RESUME or RESUME0
The execution resumes from the statement in which the error occurred.
2) RESUME NEXT
The execution resumes from the statement following the statement in which the
error occurred.
3) RESUME <line number>
The execution resumes from the line number specified in <line number>.
If the RESUME statement is used in other than the error process subroutine,
“RESUME without error” is displayed. The RETURN statement cannot be used
instead of the RESUME statement.