RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDefaultLookupList.ValueOfKey Method

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

Pascal
function ValueOfKey(const AKey: Variant): Variant; override;
C++
virtual __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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!