Restore, Restore -7, Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 83: Syntax, Example
Advertising
Publication 1746-RM001A-US-P
Assignment Functions 6-7
RESTORE
Purpose
Use the RESTORE statement to reset the internal read pointer to the beginning of
the data so that it may be read again.
Syntax
RESTORE
Example
>1
REM EXAMPLE PROGRAM
>10 FOR I = 1 TO 3
>20 READ A,C
>30 PRINT A,C
>40 NEXT I
>50 RESTORE
>60 READ A,C
>70 PRINT A,C
>80 DATA 10,20,10/2,20/2,SIN(PI),COS(PI)
READY
>RUN
10
20
5
10
0
-1
10
20
Advertising