Restore
Previous  Next

Description: Resets the data pointer to the beginning of the line label where a DATA statement is located.

     Syntax:
     
Restore <LineLabel>

Part
Description
<LineLabel>
Required. This is the line label where the data pointer will be reset to.

Notes: If there isn't a Data statement after the <LineLabel>, the compiler will throw an error.

Example:

        Restore MyData
        ReadInt a, b, c, d
        Print a, b, c, d

MyData:
        DataInt 1, 2, 3, 4, 5