Tandy 1000 Basic Reference Manual page 294

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Keywords
RESTORE
Statement
RESTORE [Line]
Restores a program's access to previously read DATA statements.
Line
is a line number that contains a DATA statement. If you
specify
line,
the next READ statement accesses the first item in
the specified DATA statement. If you omit
line,
BASIC resets to
the first DATA statement in the program.
This lets your program reuse the same DATA lines.
Sample Program
1 6 0 RECID
X $
1 7 0 RESTORE
1 8 0 READ
Y $
1 9 0 P R I N T X S ,
Y $
2 0 0 DCITFI F I R S T I T E M ,
SECOND I T E M
When you run this program, BASIC prints:
F I R S T I T E M
F I R S T I T E M
Because of the RESTORE statement in Line 170, the second
READ statement starts over with the first DATA item.
292

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents