Skip to content
Andrew Owen edited this page May 30, 2023 · 2 revisions

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.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally