[Lazarus] The drop-down menu not list data table
Joost van der Sluis
joost at cnoc.nl
Thu Jun 26 12:20:59 CEST 2008
Op donderdag 26-06-2008 om 17:43 uur [tijdzone +0800], schreef peng:
>
> I connect to a database, using the DBComboBox component, linked to a
> field in the Datasource, running, we can see the current record field
> values. However, the mouse click it, the drop-down box is empty.
> How can the drop-down box show records that all of the query?
You have probably only set the datasource+field of the field in which
you want to store the data. You also have to provide a datasource and
two fields (one with the key, one with the value you want to show) to
generate the list from which you want to choose. Look at ListDatasource,
KeyField and ListField.
Joost
More information about the Lazarus
mailing list