RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.Lookup Property

Determines whether the field is specified as a lookup field.

Pascal
property Lookup: Boolean;
C++
__property Boolean Lookup;

Lookup is provided for backward compatibility. To determine if a field is a lookup field, use the FieldKind property instead Lookup indicates whether FieldKind is fkLookup. When FieldKind is fkLookup, Lookup is true. When FieldKind is any other value, Lookup is false. Changing Lookup to false implicitly sets FieldKind to fkData. Note that lookup fields do not work if the field is in a unidirectional dataset.  

If the field is a lookup field, the KeyFields property indicates which fields in the dataset must match the LookupKeyFields in the LookupDataSet, to identify a record in the LookupDataSet. The value of the LookupResultField for that record becomes the Value of the field component. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!