lazarus/examples/database/dblookup
2024-07-29 12:26:08 +02:00
..
data Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
dBLookup.ex-meta Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
project1.ico Revised default project icon (less memory usage). Text in logos as graphic, no need for a special font. All by Roland Hahn. 2024-07-29 12:26:08 +02:00
project1.lpi Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
project1.lpr Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
project1.res Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
readme.txt Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
unit1.lfm Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
unit1.pas Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +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)