[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Find the first key that matches a value
Source position: db.pas line 255
public function TLookupList.FirstKeyByValue( |
const AValue: Variant |
):Variant; |
AValue |
|
Value to match key with. |
First key that has AValue associated with it.
FirstKeyByValue does a reverse lookup: it returns the first key value in the list that matches the AValue value. If none is found, Null is returned. This mechanism is quite slow, as a linear search is performed.
If no key is found, Null is returned.
|
Look up value based on a key |