Restore; Resume - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

RESTORE
RE SI 0 R E [<line number>]
10 READ a$:PRINT a$;"
If;
20 RESTORE 50
30 FOR t=1 TO 500:NEXT:GOTO 10
40 DATA restored data can be read again
50 DATA and again
run
COMMAND: Restores the position of the 'pointer' back to the beginning of the D A T A
statement specified in the optional <line number>. Omitting this parameter restores
the pointer back to the first D A T A statement.
Further information concerning data will be found in part 2 of the chapter entitled
'At your leisure ... .'.
Associated keywords: D A TA, REA D
RESUME
RES UM E [<line number>]
10 ON ERROR GOTO 60
20 FOR x=10 TO 0 STEP-1:PRINT 1/x:NEXT
30 END
40 PRINT "go here after error"
50 END
60 PRINT "error no.";ERR;"in line";ERL
70 RESUME 40
r.un
COMMAND: Resumes normal execution of a program after an error has been
trapped and processed by an 0 N ERR 0 R GOT 0 command. If the <line number> to
RES U M E at is not specified, the program will re-commence execution from the same
line in which the error was first trapped. Try removing the <line number> parameter
in the above example, then RUN again.
70 RESUME
run
Associatedkeywords: DERR, ERL, ERR, ERROR, ON ERROR GOTO,
RESUME NEXT
Complete List of Keywords
Chapter 3 Page 67

Advertisement

Table of Contents
loading

Table of Contents