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

TFPHashTable.Find

Search for an item with a certain key value.

Declaration

Source position: contnrs.pp line 236

public function TFPHashTable.Find(

  const aKey: String

):THTNode;

Arguments

aKey

  

Key value to look for.

Function result

THTNodeinstance matching AKey

Description

Findsearches for the THTNodeinstance with key value equal to Akeyand if it finds it, it returns the instance. If no matching value is found, Nilis returned.

Note that the instance returned by this function cannot be freed; If it should be removed from the hash table, the Deletemethod should be used instead.

Errors

None.

See also

Add

  

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

Delete

  

Delete a key from the hash list.