Vector Basic Interpreter Basic 80 Reference Manual - page 99
Purpose:
Remarks:
RENUM
[[
Extended, Disk
To renumber program lines.
in
the
new sequence.
The default is 10.
number> is the line in the current program where renumbering is to begin. The default is the first line of the program. is the increment to be used in the new sequence. The default is 10. RENCH also changes all line number references following GOTO, GOSUB, THEN, ON •••GOTO, ON •••GOSUB and ERL statements to reflect the new line numbers. If a nonexistent line number appears after one of these statements, the error message "Undefined line xxxxx in yyyyy" is printed. The incorrect line number reference (xxxxx) is not changed by RENUM, but line number yyyyy may be .changed. RENUM cannot be used to change the order of program lines (for example, RENUM 15,30 when the program has three lines numbered 10, 20 and 30) or to create line numbers greater than 65529. An "Illegal function call" error will result. Renumbers the entire program. The first new line number will be 10. Lines will increment by 10. RENUM 30G,,50 Renumbers the entire pro- gram. The first new line number will be 300. Lines will increment by 50. RENUM 1000,900,20 Renumbers the lines from 900 up so they start with line number 1000 and increment by 20.