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

9- 11
| | Emit or suppress code | INLINE | Code savings |
| | that causes a run-time | | vary, but option |
| RANGE [ CHECKING] | error when one of the | RANGE CHECKING | NORANGE can save |
| | following occurs: | | 12 to 16 words |
| { NO RANGE} | | | per array or |
| { NORANGE } [ CHECKING] | 1. An array index or | | substring access. |
| | a substring index | | |
| | is out of bounds. | | |
| | |||
| | 2. An integer to | | |
| | short integer | | |
| | conversion | | |
| | overflows. | | |
| | 3. The nested GOSUB | | |
| | level is greater | | |
| | than the default | | |
| | MAXGOSUB level or | | |
| | the value | | |
| | specified in | | |
| | COPTION MAXGOSUB. | | |
| | 4. The file number | | |
| | used is greater | | |
| | than the default | | |
| | MAXFILES or the | | |
| | MAXFILES value in | | |
| | the COPTION | | |
| | MAXFILES. | | |
| | |||
---------------------------------------------------------------------------------------------
| | |||
| | Allows or disallows array | PROGRAM UNIT | Reduces code for |
| REDIM | redimensioning. Not | | array access |
| | allowing dimensions to | REDIM | (unless array is |
| NO REDIM | change allows for more | | variably |
| | compile-time and less | | dimensioned). |
| | run-time checking of | | Performance |
| | array bounds. GLOBAL | | improves |
| | COPTION [NO] REDIM | | corresponding to |
| | affects arrays in COM. | | code reduction. |
| | |||
---------------------------------------------------------------------------------------------
Table 9-3. Dataspace COPTIONS
---------------------------------------------------------------------------------------------
| | |||
| Option | Meaning | Type | Default |
| | |||
---------------------------------------------------------------------------------------------
| | |||
| MAXFILES [=]
num_lit
| Specifies the largest | Program Unit | 16 |
| | file number used in this | | |
| | subunit. Each invocation | | |
| | of a subunit allocates 1 | | |
| | word for each legal file | | |
| | number. | | |
| | |||
---------------------------------------------------------------------------------------------
| | |||
| MAXGOSUBS [=]
num_lit
| Allows GOSUB statements | None | 10 |
| | to be nested to a depth | | |
||of
num_lit
. A run-time | | |
| | error occurs if more than | | |
||
num_lit
GOSUB statements | | |
| | execute before a RETURN | | |
| | (in one subunit). Each | | |
| | invocation of a subunit | | |
| | allocates one word for | | |
| | each possible GOSUB. | | |
| | |||
---------------------------------------------------------------------------------------------