Restore

Restore [integer]

Restore reset the data pointer used by Read statement. 
If parameter is negative then the data memory is released and pointer reset to 0.
Restore can be used as function, which returns the old data pointer. 

Example:

Data 1, "Hello", .5 

Read a%, b$
Print a%, b$

Restore
Read a%, b$, c
Print a%, b$, c

1     Hello
1     Hello     0.5

Print Restore(0-1) : Rem Release data memory and reset the data pointer to 0

0

Data 2    : Rem Insert 2 in location 0
Read a    : Rem Read 2 and save it into variable a
Print a   

2


Comments