help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'contnrs' (#fcl)

TFPHashObjectList.Rename

Rename a key

Declaration

Source position: contnrs.pp line 312

public function TFPHashObjectList.Rename(

  const AOldName: shortstring;

  const ANewName: shortstring

):Integer;

Arguments

AOldName

  

Key to rename

ANewName

  

New name of key

Function result

New position in the list

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505