RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLookupList.ValueOfKey Method

Returns the lookup value associated with a set of key field values.

Pascal
function ValueOfKey(const AKey: Variant): Variant;
C++
__fastcall Variant ValueOfKey(const Variant AKey);

Call ValueOfKey to look up the value for a lookup field that has the set of values specified by the AKey parameter on the fields identified by its KeyFields property. AKey is a Variant or Variant array that contains the values on the key fields in the lookup data set that uniquely specify a lookup field value. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!