lazarus/examples/database/dblookup
jesus 7f68d3bce3 Examples, dblookup example from Leslie Kaye
git-svn-id: trunk@19140 -
2009-03-28 16:22:11 +00:00
..
data Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
project1.ico Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
project1.lpi Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
project1.lpr Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
project1.lrs Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
project1.manifest Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
project1.rc Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
readme.txt Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
unit1.lfm Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
unit1.lrs Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00
unit1.pas Examples, dblookup example from Leslie Kaye 2009-03-28 16:22:11 +00:00

This example contains a data table of month numbers and the corresponding month names.
There is a second data table which has a month number data field and a second month number data field which is used as the KeyField for a month name lookup field
TDBLookupComboBox and listbox controls are linked to the first month number field and to the lookup field. They lookup into the first dataset for their display values.
As expected, changing the value of the controls on the data field changes the value of the field however changing the value of the controls on the lookup field does not change the value of its key field as would be expected (this is the behaviour in Delphi)