Sign in Join
FPDoc Onlineexperiment

TFPCustomHashTable.Find function

Member of TFPCustomHashTablepublicIn unit Contnrs

Search for an item with a certain key value.

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.