Skip to content

TFPDataHashTable.Add

Add a data pointer to the list.

Declaration

Source position: contnrs.pp line 444

public 
procedure TFPDataHashTable.Add(const aKey: AnsiString; AItem: pointer)
                              ;  virtual;

Description

Add adds a data pointer (AItem) to the list with key AKey.

Errors

If AKey already exists in the table, an exception is raised.

See also

Name Description
TFPDataHashTable.Items Key-based access to the items in the table.