Tandy 1000 Basic Reference Manual page 295

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC Ke.ywords
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 has
occurred.
RESUME line causes the computer to branch to the specified
line number.
RESUME NEXT causes the computer to branch to the state-
ment following the point at which the error has occurred.
Examples
RESUME
If an error has occurred, this line transfers program control to
the statement in which it has occurred.
RESUME 1 0
If an error has occurred, transfers control to Line 10.
Sample Program
1 0 ON ERROR G O T 0 9 0 0
9 0 0
I F < E R R = 2 3 0 ) A N D ( E R L = 9 0 )
T H E N P R I N T "TRY
A G A I N "
:
RESUME 8 0
293

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents