The RESTORE statement is used to change the current DATA location which is used by the READ command. It allows DATA to be READ in a random access way. The RESTORE statement takes a label which is defined in the source code using a unique identifier followed by a colon - note that the colon is dropped when the label is referenced by the RESTORE statement. Once the restore statement has been executed then the subsequent READ statements will read data sequentially starting from the specified label.
DIM B AS BOOLEAN
DIM I AS INTEGER
DIM D AS DOUBLE
DIM S1,S2 AS STRING
REM *** Note that the label doesn't have the ':'
REM *** character when it is referenced by the
REM *** RESTORE statement
REM *** Define first label - note the ':' character
DATA 3.141,String Value,"String Value, with Comma"
REM *** Define second label - note the ':' character
DATA 2.718,Second String Value,"Second String Value, with Comma"