Forum > Databases
[SOLVED] Tdbf FPC components vs Lazarus DataAcess TDbf???
wp:
--- Quote from: 1HuntnMan on February 12, 2024, 04:38:23 pm ---Woops, you're right just saw it, it's a typeo. Should be a comma.
--- End quote ---
Does it solve your issue?
1HuntnMan:
No, didn't solve the issue. Screenshot of the CmboBxSerchBy but the drop-down is displaying: Name (L,F,M)
Client/Customer
Appt. No.
BUT, that's not the way it's coded, it's displaying what I had coded yesterday. The current code is:
Name (L,F,M)
Client/Customer
Appt. Date/Time
wp:
Can't help you because I don't know the details of your project.
Just wanted to verifiy that indexes can be changed with the TDbf component in the Lazarus distribution. Yes - at least the code in the attached project is working which is modified from https://wiki.freepascal.org/Example:_TDbf_(creating_table_and_indexes,_selecting_of_index), even with a combined index.
1HuntnMan:
WP, you are my hero member, Ha!
Anyway, I wish I had read this post before I reinstalled Lazarus. I opened up your sample unit about 30 minutes and started looking thru your unit1 code for your ComboBx and it hit me right in the face. One line a code, Combobox1.Items.Clear!
I was concentrating so hard on the why my ComboBox items were not showing what I had changed in my comboboxselect procedure. When I first added the ComboBoxSelect component to the form a few weeks ago, I had typed in the items Strings in the ComboBox-Properties Items but forgot about when I was changing the way context sensitive search and even add another index but didn't update the Property-Items. I hard coded like you showed me in the Unit combobx example where you cleared the items before doing anything. LoL! That was all it was. Thanks my friend! Take Care...
Navigation
[0] Message Index
[*] Previous page