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

4-: 43
In the first declaration, each element of the
array can have a maximum length of 18 characters
(default value). In the second declaration, the
maximum length of each element is
num_expr3
characters.
array_subscripts
A list specifying each
dimension
. Each dimension
is separated from the next by commas. An array
has between one and six dimensions. The default
is one dimension.
dimension
A single number or a pair of numbers that has the
syntax:
[
num_expr1
:]
num_expr2
num_expr1
Lower bound for the dimension. If the DIM
statement is in the main program unit, the value
of
num_expr1
must be constant.
num_expr1
is less
than or equal to
num_expr2
. The default is
default lower bound specified in the appropriate
OPTION BASE statement or the HP Business BASIC/XL
configuration file.
num_expr2
Upper bound for the dimension. If the DIM
statement is in the main program unit, the value
of
num_expr2
must be constant.
num_expr3
Maximum length of each string in the array. The
default length is 18.
Examples
10 !Numeric Arrays
20 DIM Default_type_Arr(20)
30 DIM INTEGER Int_Arr1(40)
40 DIM REAL Real_Arr3(10:20,10,9)
50 DIM DECIMAL Dec_Arr(40), Dec_Arr2(10,4), REAL Real_Arr2(2,2:4)
10 !String Arrays
20 OPTION BASE 1
30 DIM Default_length_string$
40 DIM Str_len_80$[80]
50 DIM Str_arr1_len_80$(10)[80]
60 DIM Str_arr2_len_20$(10:15,-10:0,5,3)[20]
DISABLE
The DISABLE statement suppresses the execution of a branch specified by
pressing a branch-during-input key and places the branch into the
interrupt queue. The interrupt queue contains branches that are to be
executed. The key-generated branches in the queue are stored by HP
Business BASIC/XL in a format that includes the key number. The branch
information for each key is able to be stored only once.
If a key defined as a branch-during-input key is pressed while key
generated branch processing is DISABLED, the branch is added to the
interrupt queue. If the function key is subsequently redefined by an ON
KEY statement and pressed again while the first branch is still in the
queue, then the original branch information is overwritten by that
present in the second ON KEY statement. There can be at most eight
interrupts pending in the queue; one for each of the eight softkeys. The
interrupt for a specific key can only be stored once. Pressing a key
multiple times while DISABLE is in effect does not result in multiple
executions of that key's action when interrupts are enabled.
Syntax
DISABLE
Examples
100 DISABLE