Sign in Join
FPDoc Onlineexperiment

TLookupList.ValueOfKey function

Member of TLookupListpublicIn unit DB

Look up value based on a key.

Declaration

pascal
function ValueOfKey(const AKey: Variant): Variant

Arguments

AKey

Key to find associated value for.

Function result

Resulting value or Null.

Description

ValueOfKey does a value lookup based on a key: it returns the value in the list that matches the AKey key. If none is found, Null is returned. This mechanism is quite slow, as a linear search is performed.

See also

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