Specifications

Commands - 99
RESUME
Statement
SYNTAX: RESUME
RESUME NEXT
RESUME line
PURPOSE: To continue program execution after an error recovery procedure has been performed.
REMARKS: If NEXT is not declared, the main program will resume operation by reexecuting the statement that
originally caused the error. Every error–handling routine must eventually end either by executing a
RESUME statement or by terminating the program.
If NEXT is specified, execution resumes at the statement immediately following the one which caused
the error.
When an error trap occurs, it has the effect of disabling the ON ERROR GOTO statement that
enabled the trap. Any further error occurring prior to the execution of another ON ERROR GOTO
statement will cause the termination of the program. An ON ERROR GOTO statement may be
included at the end of the error–handling routine to maintain the error trap enabled.
Error traps may be nested in the same manner as GOSUBs and function calls, and the error routine
may begin with an ON ERROR GOTO statement, with its own error–handling routine. Each
error–handling routine must be terminated with a RESUME statement.
NOTE: You cannot use labels with RESUME.
RELATED: ON ERR
ERROR: <RESUME w/o ON/ERR> – if no corresponding error condition
<Can’t compile> – if line does not exist