Skip to content

TFPStringHashTable.Add

Add a new string to the hash list.

Declaration

Source position: contnrs.pp line 472

public 
procedure TFPStringHashTable.Add(const aKey: AnsiString; 
                                const aItem: AnsiString);  virtual;

Description

Add adds a new string AItem to the hash list with key AKey.

Errors

If a string with key Akey already exists in the hash table, an exception will be raised.

See also

Name Description
TFPStringHashTable.Items Key based access to the strings in the hash table.