RENUM - source-solutions/HELP GitHub Wiki
RENUM [new|.] [, [old|.] [, increment]]
Replaces the line numbers in the program by a systematic enumeration starting
from new
and increasing by increment
. If old
is specified, line numbers less
than old
remain unchanged. new
, old
are line numbers; the dot .
signifies the
last line edited. increment
is a line number but must not be a dot or zero.
The following keywords can reference line numbers, which will be renumbered by
RENUM
: GOSUB
, GOTO
, LIST
, RESTORE
, RUN
.
- Any of the parameters is not in
[0 to 65529]
: Syntax error. - Any of the newly generated line numbers is greater than
65529
: Illegal function call. The line numbers up to the error have not been changed. -
increment
is empty or zero: Illegal function call. -
old
is specified andnew
is less than or equal to an existing line number less than old: Illegal function call.