Skip to content

TLookupList.ValueOfKey

Look up value based on a key.

Declaration

Source position: db.pas line 282

public 
function TLookupList.ValueOfKey(const AKey: Variant) : Variant;

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

Name Description
TLookupList.FirstKeyByValue Find the first key that matches a value.
TLookupList.Add Add a key, value pair to the list.