TfrxDBLookupComboBox

Top  Previous  Next

This component is used for selecting a value from a look-up dataset.

 

_img292

 

The component has the following properties:

 

Property

Description

DataSet

data source to which the control is connected

ListField

name of DB field displayed in the control

KeyField

name of DB key field identifying the selected record

KeyValue

value of DB key field returned by the selection from the list

Text

value of DB list field displayed in the list

AutoOpenDataSet

when True the connected data source is opened automatically after the dialogue's OnActivate event

 

To connect the control to the look-up dataset enter values for the three properties : “DataSet”, “ListField” and “KeyField”.

 

Note that the returned value is available via either the “Text” or the “KeyValue” properties, neither of which appears in the object inspector. They are accessible only through code. The initial position of the cursor in the look-up dataset can be set in code using “KeyValue”.