RENUMBER
—Renumber lines of a BASIC program
RENUMBER [new starting line number][,increment] [,old
starting line number]
The new starting line is the number of the first line in the program
after renumbering; the default value is 10. The increment is the inter
val between line numbers, (i.e., 10,20,30, etc.); the increment
default value is also 10. The old starting line number is the first line
number before you renumber the program. This allows renumbering
of a select portion of the program. The default in this case is the first
line of the program. This command can only be executed from direct
mode.
An "UNRESOLVED REFERENCE" error occurs if any reference to
line number that doesn't exist is encountered. A "LINE NUMBER
TOO LARGE" error occurs if RENUMBERing expands the program
beyond its memory limits. Either error leaves the program
unharmed.
EXAMPLES:
RENUMBER
RENUMBER 20, 20,1
RENUMBER,, 65
Renumbers the program starting at
10, and increments each additional
line by 10.
Starting at line 1, renumbers the
program. Line 1 becomes line 20,
and other lines are numbered in
increments of 20.
Starting at line 65, renumbers in
increments of 10. Line 65 becomes
line 10. If you omit a parameter, you
must still enter a comma as a
placeholder.
NOTE: Line ranges, such as in LIST, GOSUB, or GOTO are not
renumbered.
RESTORE
—Reset READ pointer so the DATA can be reREAD
RESTORE [line #]
When executed in a program, the pointer to the item in a DATA state
ment that is to be read next is reset to the first item in the DATA state
ment. This provides the capability to reREAD the data. If a line num
ber follows the RESTORE statement, the READ pointer is set to the
first data item following the specified program line. Otherwise the
pointer is reset to the beginning of the BASIC program.
295
BASIC 7.0 ENCYCLOPEDIA—Basic Commands and Statements
Need help?
Do you have a question about the 128D and is the answer not in the manual?
Questions and answers