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

TFPHashTable.Items

Indexed access to the data pointer.

Declaration

Source position: contnrs.pp line 241

public property TFPHashTable.Items: Pointer
  read GetData
  write SetData;
  default;

Description

Item allows indexed access to the data pointers. When reading the property, if Index exists, then the associated data pointer is returned. If it does not exist, Nil is returned. When writing the property, if Index does not exist, a new item is added with the associated data pointer. If it existed, then the associated data pointer is overwritten with the new value.

See also

TFPHashTable.Find

  

Search for an item with a certain key value.

TFPHashTable.Add

  

Add a new key and its associated data to the hash.