HP 3000 Manuals

GET KEY [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

GET KEY 

The GET KEY statement's action depends on whether a filename parameter is
included in the statement.  If a filename parameter is included and the
file has a BKEY format, then the GET KEY statement defines the fields of
the user-definable keys by obtaining all of the required information from
the file.  If the file specified does not have a BKEY format, an error
occurs.  If the filename is not specified, then the value of the fields
for the user-defined keys is the value of the fields set during the
previous GET KEY, SCRATCH KEY, or SAVE KEY statement.  The default key
set (blank key labels, and the ASCII 7 BEL function) is displayed when
GET KEY is issued without first issuing SCRATCH KEY, SAVE KEY or a GET
KEY.

Syntax 

{GET KEY}
{GETKEY } [fname]

Parameters 

fname            The file that GET KEY uses to obtain information about
                 the user-definable keys.  A file name represented by a
                 quoted string literal, an unquoted string literal or a
                 string expression as described in chapter 6.

Examples 

     GET KEY
     GETKEY "keydef"                           !Uses file Keydef

     100 GETKEY
     200 GETKEY keydef2                        !Uses file Keydef2
     300 GET KEY Filename$ + "." + Groupname$  !Uses the file named in
     310                                       !Filename$ in group Groupname$



MPE/iX 5.0 Documentation