RESTORE Statement

Purpose:

To allow DATA statements to be reread from a specified line.

Syntax:

RESTORE[line number]

Comments:

If line number is specified, the next READ statement accesses the first item in the specified DATA statement.

If line number is omitted, the next READ statement accesses the first item in the first DATA statement.

Examples:

10 READ A, B, C,
20 RESTORE
30 READ D, E, F
40 DATA 57, 68, 79
.
.
.

Assigns the value 57 to both A and D variables, 68 to B and E, and so on.