RESAVE KEY
The RESAVE KEY statement's action is dependent on whether a filename
parameter is included in the statement. If a filename parameter is
included and the file does not previously exist, the RESAVE KEY statement
stores the typing aid definitions in a BKEY file. The file to which the
information is saved has a special format and a BKEY file code. If no
filename parameter is specified, the RESAVE KEY statement causes HP
Business BASIC/XL to store the current typing aid key definitions
internally as the current definition. The RESAVE KEY statement does not
save information for keys defined as branch-during-input keys, it saves
only the key definition information for keys defined as typing aid
definitions.
The file referenced by fname must exist and have a BKEY file format. An
error occurs if the format is not correct. If any user-definable keys
have been defined as branch-during-input keys when a RESAVE or SAVE
statement is executed in the interpreter or in a compiled program, the
last typing aid key definition for that key is the information written to
the BKEY file.
Typing aid keys are discussed in detail in chapter 8, User-definable
Keys.
Syntax
RESAVE KEY [fname]
Parameters
fname A file name represented by a quoted string literal, an
unquoted string literal or a string expression as
described in chapter 6.
Examples
RESAVE KEY typeaid
200 RESAVE KEY typeaid1 !File is typeaid1
210 RESAVE KEY Filename$ + "." + Groupname$ !Uses the data in Filename$
211 !and Groupname$