[Overview][Constants][Types][Classes][Procedures and functions] | Reference for unit 'contnrs' (#fcl) |
Rename a key
Source position: contnrs.pp line 245
public function TFPHashList.Rename( |
const AOldName: shortstring; |
const ANewName: shortstring |
):Integer; |
AOldName |
|
Key to rename |
ANewName |
|
New name of key |
New position in the list
Rename renames key AOldname to ANewName. The hash value is recomputed and the item is moved in the list to it's new position.
If an item with ANewName already exists, an exception will be raised.
No notes exist for this page yet.