
Commands - 106
RESTORE
Statement
SYNTAX: RESTORE [line]
PURPOSE: To reset the RE AD pointer to the b eginning of the DAT A list.
REMARK S: After a RESTORE statement is executed, the next READ statement acc esses the first item in the first
data statement in the program.
If the optional line number is specified, the next READ statement accesses the first item beginning at
the line number specified.
NOTE: Labels may not be used with RESTORE.
RELATED: DATA, READ
EXAMPLE: 10 READ A,B,C
20 RESTORE
30 READ D,E,F
40 DATA 12,34,56
50 PRINT A ; B ; C ; D ; E ; F
RUN
12 34 56 12 34 56
ERROR: < Can’t co mpile> – if optional line does not exist
Commentaires sur ces manuels