HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 86
returns to the calling program unit.
OFF KEY
The OFF KEY statement restores the last typing aid key definition for a
user-definable key or set of keys. If no typing aid key definitions are
active then the default key definitions are restored.
Syntax
OFF KEY [
key_number_list
]
Parameters
key_number_list
A list of integers or numeric expressions that evaluate
to an integer in the range of [1, 8] separated by commas
or semicolons. No more than eight values can be
specified for each statement. If the integer is not in
the specified range, an error occurs. If values are not
specified, typing aid definitions for all keys are
restored.
Examples
The first example shows the use of the OFF KEY statement as a command.
>OFF KEY 1
100 OFF KEY ! Restores the typing aid definition of all keys
110 OFF KEY 1 ! Restores the typing aid definition of key 1
120 OFF KEY 1,2,3,8 !Restores the typing aid definition of keys 1,2,3 and 8
ON DBERROR
The ON DBERROR statement defines a database error-handling routine. The
ON DBERROR statement is unnecessary if each database operation utilizes
the STATUS option because the status array returns the error code, and
the error does not stop the program.
The ON DBERROR statement is disabled by the OFF DBERROR statement.
Syntax
{GOTO }
{{GO TO } }
ON DBERROR {{GOSUB }
line_id
}
{{GO SUB} }
{CALL
sub_id
}
Parameters
line_id
Line label or line number.
sub_id
Subunit identifier.
Table 4-7 shows the similarities and differences between the three forms
of the ON DBERROR statement.