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

2-: 7
|||||
| | | | is before first |
| | | | program line, range |
| | | | begins with first |
| | | | program line. |
|||||
| | | | If |
||||
line_num
{+|-}
offset
|
|||||
| | | | is after last program |
| | | | line, range begins |
| | | | with last program |
| | | | line. |
|||||
---------------------------------------------------------------------------------------------
Table 2-2. Where Line Range Ends When
ln_spec2
is Not in Program
---------------------------------------------------------------------------------------------
||||
|
ln_spec2
| Program does not have | Program does not have |
||
line_num
|
line_num
{+ | -}
offset
|
|||(but has
line_num
) |
||||
---------------------------------------------------------------------------------------------
||||
|
line_num
| Range ends with existing | Not applicable. |
| | line number that is | |
| | closest to but less than | |
||
line_num
.| |
||||
---------------------------------------------------------------------------------------------
||||
|
line_num
{+| -}
offset
| Error occurs. | If
line_num
{+|-}
offset
|
||||
| | | is before first program |
| | | line, range ends with |
| | | first program line. |
||||
|||If
line_num
{+|-}
offset
|
||||
| | | is after last program |
| | | line, range ends with |
| | | last program line. |
||||
---------------------------------------------------------------------------------------------
Examples
Refer to this program when reading the examples that follow it:
100 A=3
110 B=4
120 PRINT A,B
130 Add: C=A+B
140 PRINT C
150 END
160 DEF FNTwo
170 PRINT "In FNTwo"
180 RETURN 2
190 FNEND
Range Specified Range Used (or Effect)
10 Nothing happens
10/120 100/120
10/125 100/120
110 110
10+1 Error
10+1/130 Error
100+2 120