HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

2-: 6
ln_spec2
Last line in range. The
line_num
through
line_label
{+|-}
offset
are the same as specified for
ln_spec1
.
MAIN, SUB and FN change to the corresponding last line
in each.
MAIN Last line in main program. The
default is
ln_spec1
.
SUB
sub_id
Last line in
sub_id
.
[SUB] FN
func_id
Last line in FN
func_id
.
Examples
The following shows examples of specifying line ranges.
ALL !Specifies all lines
SUB Sub1 !Specifies all lines in Sub1
FNAdd, FNScramble$ !Specifies all of FNAdd and FNScrable$
MAIN, FNAdd/FNScramble$ !Specifies all of FNAdd, FNScramble, and
!all of the main program
100,1000+50,Label+50 !Specifies lines 100, and the lines that are 50
!lines past 1000 and 50 lines past Label
FIRST+100/LAST-350 !Specifies 100 lines past FIRST through 350 lines
!before LAST
*/LAST !Specifies the last executed line through the
!last program line
*-50/*+10,SUB Sub1/LAST !Specifies 50 lines before the last executed
!line through 10 lines after the last executed
!line, and the first line of Sub1 through the
!last program line
FIRST/FNAdd !Specifies the first program line through the
!last line of FNAdd
MAIN/2000 !Specifies the first line of the main program
!through line 2000
100/150 !Specifies lines 100 through 150
Table 2-1 shows where the line range begins when
ln_spec1
is not in the
program. Table 2-2 shows where the line range ends when
ln_spec2
is not
in the program.
Table 2-1. Where Line Range Begins When
ln_spec1
is Not in
Program
---------------------------------------------------------------------------------------------
|||||
|
ln_spec1
|
ln_spec2
is | Program does not | Program does not have |
||Specified | have
line_num
|
line_num
{+|-} |
||||
offset
|
||||(but has
line_num
) |
|||||
---------------------------------------------------------------------------------------------
|||||
|
line_num
| No | Nothing happens. | Not applicable. |
|||||
---------------------------------------------------------------------------------------------
|||||
|
line_num
| Yes | Range begins with | Not applicable. |
| | | existing line number that | |
| | | is closest to but greater | |
| | | than
line_num
.| |
|||||
---------------------------------------------------------------------------------------------
|||||
|
line_num
{+|-}
offset
| Irrelevant | Error occurs. | If |
||||
line_num
{+|-}
offset
|