Site pages
Current course
Participants
General
Topic 1
Topic 2
Topic 3
Topic 4
Topic 5
Topic 6
Topic 7
Topic 8
Topic 9
Topic 10
Topic 11
Topic 12
Topic 13
Topic 14
Topic 15
Topic 16
Topic 17
Topic 18
Topic 19
Topic 20
Topic 21
Topic 22
Topic 23
Topic 24
Topic 25
Topic 26
Topic 27
Topic 28
Topic 29
Topic 30
Topic 31
Topic 32
Topic 33
Topic 34
Topic 35
The RESTORE statement
This statement transfers the pointer, regardless of where it is, to the first value of the data statement in the program. Its form is 28 RESTORE Nothing should be specified after the word RESTORE. This statement may be used anywhere in the program. Eg : 10 DATA 25, -10, 3.6 20 READ J, K 30 RESTORE 40 READ M, N, P 50 END assigns the value 25 to J, -10 to K when the READ statement 20 is executed. After this, the RESTORE statement at line 30 transfers the pointer to the start of the data and so the data list can be read from the beginning again. The value 25 is assigned to M, -10 to N, 3.6 to P. |
Last modified: Wednesday, 18 January 2012, 11:06 PM