HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 17
^
Syntax error at character 12
Statement needs =
>
REDO RETURN
20 INTGGER N,P,R
E
20 INTEGER N,P,R
Iumber RETURN
20 INTEGER Number,P,R
RETURN
>
LIST 20 RETURN
20 INTEGER Number,P,R
>
RENUMBER Command
The RENUMBER command renumbers one range of program lines. The range can
be the whole program. The RENUMBER command is a command-only statement.
That is, it can only be issued at the interpreter prompt, and cannot be
placed in a program.
Syntax
{RENUMBER} {TO}
{RENUM } [
line_range
] {, } [
beginning_line_number
] [BY
increment
]
{REN }
Parameters
line_range
Lines to be renumbered. If you are specifying
line numbers, use the line numbers that you had
before issuing the RENUMBER command. The
default is all program lines.
beginning_line_number
New line number for the first line to be
renumbered. The default is 10.
increment
Increment. Number of lines between each
renumbered line. The default is 10.
Secured lines remain secure when they are renumbered.
The RENUMBER command is not executed if it would rearrange lines. The
lines that surround the lines that are being renumbered must still
surround them after they are renumbered.
If a RENUMBER command would renumber a line with a number greater than
999999, then an error occurs and the command is not executed.
The RENUMBER command renumbers every line in the
line_range
. It also
substitutes the new line number for the old one in every reference to an
existing line (for example, if line 100 becomes line 350, the statement
"GOTO 100" becomes "GOTO 350"). The RENUMBER command does not change
line numbers that reference nonexistent lines.