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



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

TFPHashList.Add

Add a new key/data pair to the list

Declaration

Source position: contnrs.pp line 233

public function TFPHashList.Add(

  const AName: shortstring;

  Item: Pointer

):Integer;

Arguments

AName

  

Key name associated with data.

Item

  

Data pointer

Function result

Position of the new item in the list

Description

Add adds a new data pointer (Item) with key AName to the list. It returns the position of the item in the list.

Errors

If not enough memory is available to hold the key and data, an exception may be raised. If an item with this name already exists in the list, an exception is raised.

See also

TFPHashList.Extract

  

Extract a pointer from the list

TFPHashList.Remove

  

Remove first instance of a pointer

TFPHashList.Delete

  

Delete an item from the list.

Notes

 No notes exist for this page yet. 





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