HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 129
unquoted string literal or a string expression as
described in chapter 6.
Examples
The following examples show the use of the SAVE KEY statement, and also
show that SAVE key is also available as a command.
SAVE KEY
SAVE KEY typeaid
100 SAVE KEY
110 SAVE KEY typeaid1
SCRATCH KEY
The SCRATCH KEY statement resets the current typing aid contents of the
attribute, label, and key definition fields of an individual or group of
user-definable keys. The values of each field for the specified keys are
assigned the default values, blank labels, local, and BEL. HP Business
BASIC/XL also stores the default values of the keys as those retrieved by
a GET KEY statement without a filename parameter.
Syntax
SCRATCH KEY [
key_number_list
]
Parameters
key_number_list
A list of integers selected from the set of [1..8] or
numeric expressions that evaluate to an integer in the
range of [1..8] separated by commas or semicolons. If
the integer is not in the specified range, an error
occurs. No more than eight values can be specified for
each statement. If no values are specified, all of the
keys are scratched.
Examples
SCRATCH KEY ! Resets typing aid definition of all user-definable
! keys
100 SCRATCH KEY ! Resets typing aid definition of all user-definable keys
110 SCRATCH KEY 1 ! Resets typing aid definition of user-definable key
! number one
120 SCRATCH KEY 1,2,6
130 SCRATCH KEY Typing_aid_key_number
SEARCH
The SEARCH statement starts the database retrieval process for HP
Business BASIC/XL's Database Sort Feature. Functions, built-in as well
as user-defined, can be used in the search condition. When the SEARCH
statement is executed, the data sets contained in the thread list are
accessed in the order and hierarchy specified by the THREAD IS statement.
The data retrieved from each data set are unpacked into the local
variables as defined in the respective IN DATASET statement. For each
type of data sets from the thread list, the search condition is
evaluated. If the search condition is true, the record pointers to the
data set records that have been read are written out to the workfile;
otherwise, they are ignored and the next data set record is searched.
The workfile is a file created and used by the program to store the
record number of the data set items that satisfy the search condition.
You can access this file.
If no search condition is needed, the keyword ALL can be used and all
records are retrieved.
When the SEARCH statement is executed, the workfile can be empty or