Restore – Remote Processing CAMBASIC User Manual
Page 139
Comm ands - 106
RESTORE
Statement
SYNTAX:
RESTORE [line]
PURPOSE:
To re set the RE AD p ointer to the b eginning of the DAT A list.
REMARK S:
After a RE STORE statement is executed, the next REA D statement acc esses the first item in the first
d a ta s ta t em e n t i n t he p r og r a m .
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