Recent

Author Topic: [Solved] Dblookupcombobox setting  (Read 173 times)

Petrus Vorster

  • Full Member
  • ***
  • Posts: 217
[Solved] Dblookupcombobox setting
« on: November 18, 2025, 10:07:20 am »
Greetings all

I have a simple little DBF file for employee Salary ref numbers, names etc.
I have a DBlookupcombobox that correctly display the list of Salary reference numbers.
I use csDropDownList as the Style and then set the Dblookupcombobox item index to 0 when the program starts.
I have enabled the Scrolllistdataset on the DBlookupcombobox as i have two TDBTEXT controls that just display the First Name and Surname when you select a Salary ref in the Tdblookupcombobox.

I know i am skipping something, but as soon as I select the Salary ref, it does change the details in the TDBTEXT correctly, but then the Text in the TDBLOOKUPCOMBOX dissapears.
Its like its setting its index to -1 perhaps?

It must be something simple?

Any help will be appreciated.

-Regards, Peter
« Last Edit: November 18, 2025, 10:16:48 am by Petrus Vorster »

 

TinyPortal © 2005-2018