Recent

Author Topic: Explanation of TDBLookupListBox  (Read 4935 times)

bruce.button

  • Jr. Member
  • **
  • Posts: 59
Explanation of TDBLookupListBox
« on: May 30, 2016, 11:15:35 am »
Can anyone point me to a simple explanation of how to use a TDBLookupListBox?

Thank you

Thaddy

  • Hero Member
  • *****
  • Posts: 14393
  • Sensorship about opinions does not belong here.
Re: Explanation of TDBLookupListBox
« Reply #1 on: May 30, 2016, 12:03:46 pm »
Can anyone point me to a simple explanation of how to use a TDBLookupListBox?

Thank you

Simply look at the docs or the delphi docs:
http://docwiki.embarcadero.com/RADStudio/XE6/en/Displaying_and_Editing_Data_in_Lookup_List_and_Combo_Boxes
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Zoran

  • Hero Member
  • *****
  • Posts: 1831
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Explanation of TDBLookupListBox
« Reply #2 on: May 30, 2016, 12:06:44 pm »
1. TDBLookupListBox is similar to TDBLookupComboBox, so wiki page might help you: http://wiki.freepascal.org/dblookupcombobox

2. Then, I found this - http://www.festra.com/wwwboard/messages/1767.html

3. Search the forum for dblookup:There are many questions about using DBLookupListBox and DBLookUpComboBox. Perhaps you can figure out what you need by reading these topics...
« Last Edit: May 30, 2016, 12:10:10 pm by Zoran »

Thaddy

  • Hero Member
  • *****
  • Posts: 14393
  • Sensorship about opinions does not belong here.
Re: Explanation of TDBLookupListBox
« Reply #3 on: May 30, 2016, 12:12:13 pm »
Basically what it does is this:

You can present the user with a set of pre-defined choices, where you, the programmer, have full control over. This is foremost to prevent the user of making an invalid  look-up query in most circumstances. But it is also convenience to the user to present him/her with valid/validated options. You can load these options from a database itself, but that is not strictly necessary.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

bruce.button

  • Jr. Member
  • **
  • Posts: 59
Re: Explanation of TDBLookupListBox
« Reply #4 on: May 30, 2016, 05:39:33 pm »
Thank you for the helpful comments! I think those links will help me to sort it out.

 

TinyPortal © 2005-2018