Unit 'Contnrs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPCustomHashTable.Find

Search for an item with a certain key value.

Declaration

Source position: contnrs.pp line 397

public function TFPCustomHashTable.Find(

  const aKey: AnsiString

):THTCustomNode;

Arguments

aKey

  

Key value to look for.

Function result

THTCustomNode instance matching AKey.

Description

Find searches for the THTCustomNode instance with key value equal to Akey and if it finds it, it returns the instance. If no matching value is found, Nil is returned.

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

Errors

None.

See also

Delete

  

Delete a key from the hash list.


Documentation generated on: Dec 27 2024