Publication 1746-UM004A-US-P
4-12 Programming Overview
Renumbering a BASIC Program
When the module is in Command mode, you can renumber the BASIC program
that resides in RAM. To renumber a BASIC program, you must enter a REN
command at the system prompt [
>]. Table 4.8 lists the commands, functions, and
keystrokes needed to renumber your BASIC program.
IMPORTANT
• The REN command updates the destination of GOSUB,
GOTO, ON ERR, ONTIME and ON GOTO statements.
• If the target line number does not exist, or if there is
insufficient memory to complete the task, no lines are changed
and the message
appears on the console
screen.
• Because the REN command uses the same RAM for
renumbering as it does for variable and program storage,
available RAM may be insufficient in large programs. You
should renumber your program periodically during
development instead of waiting until it is completed.
Command Renumbers the Program Starting at Key Strokes
Renumber the beginning of the program. The new line
numbers begin at 10 and increment by 10.
the beginning of the program. The new line
numbers begin at 10 and increment by
NUM.
the beginning of the program. The new line
numbers begin with NUM1 and increment
by NUM2.
!
NUM2. The new line numbers begin with
NUM1 and increment by NUM3.
! "