BBjFileInfo::setKeyName
Description
In BBj 6.0 and higher, this method sets the name of a VKEYED key chain.
Syntax
| Return Value | Method | 
|---|---|
| void | setKeyName(int keynum, string keyname) | 
| void | setKeyName(string oldname, string newname) | 
Parameters
| Variable | Description | 
|---|---|
| keynum | Specifies the key number. | 
| keyname | Specifies the name to be associated with keynum. | 
| oldname | Specifies the old key name. | 
| newname | Specifies the new key name. | 
Return Value
None.
Remarks
This method throws an !ERROR=13 if the file associated with this BBjFileInfo object is not a VKEYED file
This method throws an !ERROR=0 if the file is not locked.
Example
|  | 
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.