Data.DB.TDefaultLookupList.ValueOfKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ValueOfKey(const AKey: Variant): Variant; override;

C++

virtual System::Variant __fastcall ValueOfKey(const System::Variant &AKey);

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB TDefaultLookupList

Description

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

Data.DB.TDefaultLookupList.ValueOfKey inherits from Data.DB.TLookupList.ValueOfKey. All content below this line refers to Data.DB.TLookupList.ValueOfKey.

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

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 dataset that uniquely specify a lookup field value.

See Also