BFC_Lookup

Description

The BFC_Lookup-component is a DBAware editbox. With this component you have the possibility to 'locate as you type'. Place the component on a form, fill in the datasource and datafield-property. At run time the enduser can achive this by double-clicking the editbox. He will than get a list of all the fields of the table connected to the editbox.

At runtime, the enduser can fill in a value in the editbox. The BFC_Lookup component will do a locate on the table connected to it and will try to match the value with the value of the field in the datafield-property. Because the component uses a 'lookup' to do this, it will check if an index is available for the field on which it has to search. If an good index exists, it will use this internally.

Optionally the BFC_DBGrid property can be used. This way you can connect a DBGrid to the component. In this case the title in the grid will be colored for the field on which will be searched.

Properties

BFC_DBGrid   Declaration
property BFC_DBGrid: TDBGrid;

Description
The DBGrid for which the title will be colored for the selected field to search on.

Methods

None

Events

None