Searches specific data in the DATA BANK area and changes the read sequence of DATA BANK data.
RESTORE# ⎡ "object string"   ⎡     ⎧ 0 ⎫      ⎧ line number            ⎫ ⎤ ⎤
         ⎢ ---------------   ⎢ [,  ⎨   ⎬ ] [, ⎨ #program area number   ⎬ ⎥ ⎥
         ⎣ string expression ⎣     ⎩ 1 ⎭      ⎩                        ⎭ ⎦ ⎦
RESTORE#
Omitting all parameters sets the DATA BANK area pointer to the beginning of the data to be read by the next READ# command.RESTORE# "object string"
Sets the DATA BANK area pointer to the position of the specified object string.
Strings are delimited by commas, and not by spaces. A DA error is generated when the object string cannot be found.RESTORE# "object string" [, ⎧ 0 ⎫ ], ⎧ line number          ⎫
                     ⎩ 1 ⎭    ⎩ #program area number ⎭
        Execution branches to specified line or program area when the object string is not found.
*Search is conducted from the present pointer position forward to the higher record number. The following procedure is used to search from the beginning of entire data:
RESTORE#: RESTORE# "object string"
10  RESTORE# "YOU", 0, 50
20  READ# A#
30  PRINT A$
40  GOTO 10
50  PRINT "NO DATA!"
Searches for data beginning with “YOU”, and displays “NO DATA!” if not found.