Data.DB.TDefaultLookupList.Add
Delphi
procedure Add(const AKey, AValue: Variant); override;
C++
virtual void __fastcall Add(const System::Variant &AKey, const System::Variant &AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DB.pas Data.DB.hpp |
Data.DB | TDefaultLookupList |
Description
Adds a lookup value to the list for a given key value.
Data.DB.TDefaultLookupList.Add inherits from Data.DB.TLookupList.Add. All content below this line refers to Data.DB.TLookupList.Add.
Adds a lookup value to the list for a given key value.
Lookup fields call Add when building the lookup cache to associate lookup values with the values of the key fields in the lookup dataset. The AKey parameter is a variant or variant array that represents the value or values of the key fields. AValue is a variant that represents the value of the lookup field associated with the key field values.
Use Add to build a lookup list from scratch when there is no actual lookup dataset.