AMSTRAD CPC464 User Manual page 168

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

RENUM
R E N U M [ < n e w l i n e n u m b e r > ] [ , [ < o l d l i n e n u m b e r > ] [ , < i n c r e m e n t > ]
R E N U M
R E N U M 1 0 0 , , 1 0 0
COMMAND: Renumber program lines from the line specified, using the increment specified. The
<new line number> gives the first number for. the new sequence, defaulting to 10. The <old line
number> identifies where RENUM is to commence, and assumes the first program line if omitted.
The <increment> sets the increment to use between the line numbers, again defaulting to 10.
RENUM takes care of all GOSUB , GOTO and other line calls. If all the specifiers are omitted from the
command, the program is renumbered as if RENUM 10 , ,10 were issued.
Line numbers are valid in the range 1....65535.
RESTORE
R E S T O R E [< l i n e n u mber>]
R E S T O R E 3 0 0
1 0 F O R N = 1 T O 6
2 0 R E A D A $
3 0 P R I N T A $ ; " " ;
4 0 D A T A r e s t o r e d , d a t a , c a n , b e , r e a d , a g a i n
50 NEXT
6 0 P R I N T
7 0 R E S T O R E
8 0 G O T 0 1 0
COMMAND: Restores the position of the reading pointer back to the beginning of the DATA
statement specified in the optional <line number>. Omitting <line number> restores the position of
the pointer back to the beginning of the first DATA statement.
Associated keywords: REA D , DATA
RESUME
R E S U M E [ < l i n e n u m b e r > ]
or RESUME NEXT
R E S U M E 3 0 0
COMMAND: When an error has been trapped by an ON ERROR GOTO command, and has been
processed, RESUME allows normal program execution to continue, the resuming line number being
optionally specifiable. If not specified, the line in which the error has occurred is returned to.
RESUME NEXT returns to the line immediately following the statement in which the error was
detected.
Associatedkeywords: ON ERROR GOTO

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents