RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDefaultLookupList.Add Method

Adds a lookup value to the list for a given key value.

Pascal
procedure Add(const AKey: Variant; const AValue: Variant); override;
C++
virtual __fastcall Add(const Variant AKey, const Variant AValue);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!