command/RENUMBER command/RENUMBER
NAME
RENUMBER -- Renumbers program lines
ABBREVIATION
ren <shift> U
SYNOPSIS
RENUMBER [<new_line>[,<increment>[,<start_line>]]]
FUNCTION
This command renumbers BASIC program lines beginning from the first line
(set as 10) renumbering in increments of 10 at the end of the program.
You can supply starting line (<start_line>), spacing between line
numbers (<increment>), and/or first line number (<new_line>).
The first line number is the number of the first line in the program
after renumbering (default is 10). The increment is the spacing between
line numbers, i.e. 10, 20, 30 etc. (It also defaults to 10.). The first
line number is the line number in the program where renumbering is to
begin. This allows you to renumber a portion of your program. It
defaults to the first line of your program.
INPUTS
<new_line> - line number which replaces the start line number
(<start_line>). Default line number is 10.
<increment> - spacing between line numbers (default is 10)
<start_line> - line number where renumbering starts (default is the
first line)
RESULT
Renumbered program line(s).
EXAMPLES
RENUMBER 20,20,1
Starting at line 1, renumbers the program. Line 1 becomes line 20,
and other lines are numbered in increments of 20.
RENUMBER ,,65
Starting at line 65, renumbers in increments of 10. Line 65 becomes
line 10 (unless there are already lines numbered 10-64, in which
case the command is not carried out).
NOTES
This command can only be executed from direct mode.
BUGS
None
SEE ALSO
None