From RAD Studio API Documentation
Jump to: navigation, search



TLookupList = class(TObject)


class PASCALIMPLEMENTATION TLookupList : public System::TObject


Type Visibility Source Unit Parent
class public
Data.DB Data.DB


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

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 dataset. Lookup fields match the values of the fields identified by their KeyFields property with the values of the key fields from the lookup dataset. 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.

See Also