BBjFileInfo::addKey
Description
In BBj 6.00 and higher, this method adds a new key chain to a VKEYED file.
Syntax
Return Value |
Method |
void |
addKey(int keynum, BBjKeyInfo keyinfo) |
void |
addKey(string keyname, BBjKeyInfo keyinfo) |
Parameters
Variable |
Description |
keynum |
Specifies the key number where the new key chain will be inserted. |
keyname |
Specifies the key name to be added to the end of the list. |
The key structure of the new key chain. |
Return Value
None.
Remarks
This method will fail, reporting an !ERROR=13 if any of the following conditions is true:
-
The file is not VKEYED
-
The file is not locked
-
Attempt to insert a key number past the end of the list
This method will fail, reporting an !ERROR=11 on an attempt to add a named key chain that already exists.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.