RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLookupList Class

TLookupList maintains a list of lookup values associated with a set of key field values.

Pascal
TLookupList = class(TObject);
C++
class TLookupList : public TObject;

TField uses TLookupList to implement a cache of lookup values. Each value in the lookup list is associated with a set of values on the key fields in the lookup data set. Lookup fields match the values of the fields identified by their KeyFields property with the values of the key fields from the lookup data set. When these values match, the value of the lookup field is set to the associated value from TLookupList. 

Use TLookupList to generate a lookup list programmatically when there is no actual lookup dataset. Use the methods of the field's LookupList property to fill the lookup list with values and set the LookupCache property of the field to true. If no other lookup properties of the field are set, the field will use the supplied lookup list without overwriting it with values from a lookup dataset. 

 

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