Skip to content

TFPHashList.Rename

Rename a key.

Declaration

Source position: contnrs.pp line 267

public 
function TFPHashList.Rename(const AOldName: RawByteString; 
                           const ANewName: RawByteString) : SizeInt;

Description

Rename renames key AOldname to ANewName. The hash value is recomputed and the item is moved in the list to it's new position.

Errors

If an item with ANewName already exists, an exception will be raised.