Skip to content

TFPHashObjectList.Rename

Rename a key.

Declaration

Source position: contnrs.pp line 334

public 
function TFPHashObjectList.Rename(const AOldName: RawByteString; 
                                 const ANewName: RawByteString)
                                  : Integer;

Description

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

Errors

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