RENUM - source-solutions/HELP GitHub Wiki

RENUM


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.

Notes

The following keywords can reference line numbers, which will be renumbered by RENUM: GOSUB, GOTO, LIST, RESTORE, RUN.

Errors

  • 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 and new is less than or equal to an existing line number less than old: Illegal function call.
⚠️ **GitHub.com Fallback** ⚠️