RESUME
Statement
RESUME
[line]
RESUME NEXT
Resumes program execution after
an
error-handling routine.
RESUME without
an
argument and RESUME 0 both cause the
computer to return to the statement
in
which the error occurred.
RESUME
line causes the computer to branch to the specified line
number.
RESUME NEXT causes the computer to branch to the statement
following the point at which the error occurred.
A RESUME that is not
in
an
error-handling routine causes a
"RESUME without error" message.
Examples
RESUME
if an error has occurred, this line transfers program control to the
statement
in
which
it
occurred.
RESUME
10
if an error has occurred, transfers control to line 10.
Sample Program
10
ON
ERROR
GOTO
800
800
IF
(ERR=230) AND(ERL=80)
THEN
PRINT
"TRY
AGAIN"
:
RESUME
80
2-153