HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 5
[SUB] FN
func_id
Range is all of FN
func_id
, which
must exist.
MAIN Range is all of the main
program, which must exist.
ln_spec1
First line in range, specified by one of the following:
line_num
If
line_num
does not exist,
line_range
is null (see Table
2-1 and Table 2-2).
line_num
{+|-}
offset
The line that is
offset
lines
from the line numbered
line_num
(see
offset
, below). The line
numbered
line_num
must exist in
the program. If
line_num
{+|-}
offset
does not exist, the
existing line nearest it is used
(see Table 2-1 and Table 2-2).
FIRST First program line.
LAST Last program line.
* Last line executed (undefined
for a stopped program). The
command LIST * displays this
line.
line_label
Must be defined in the currently
executing program unit.
line_label
{+|-} The line that is
offset
lines
offset
from the line labeled
line_label
(see
offset
, below). The label
line_label
must be defined in
the currently executing program
unit. If
line_label
{+|-}
offset
does not exist, the line
nearest it is used (see Table
2-1 and Table 2-2).
MAIN The first line of the main
program. The main program must
exist.
SUB
sub_id
The first line of the subprogram
sub_id
. The subprogram must
exist.
[SUB] FN
func_id
The first line of the function
FN
func_id
. The function must
exist.
offset
Number of actual lines past (or
before)
line_num
. For example,
10+3 is the line three lines
from line 10. This is not
necessarily line 13. In the
following program, it is line
50:
10 PRINT "HI"
20 X=4
30 PRINT X
50 END