Recent

Author Topic: ComboBox, ListBox and ListView items with MySQL  (Read 5295 times)

M[a]nny

  • Full Member
  • ***
  • Posts: 130
  • Dreamer
ComboBox, ListBox and ListView items with MySQL
« on: July 05, 2011, 09:50:27 pm »
Hello,

i have a problem. Imagine you need to save 2 columns to ComboBox (for example 1st column is UserName and second one is ID). Probably you try to use:
Code: [Select]
Combobox1.Items.Add('*UserName*');but what about ID? How to access to item with ID?

It would be really good if there would be something like:
Code: [Select]
ShowMessage(Combobox1.Items.Selected.Id); //ID of selected item for database purposes
And same for other components like ListBox, ListView etc.
Bad news: Time flies.
Good news: You are the pilot.

Don't try to be perfect, just be unique.

 

TinyPortal © 2005-2018