[Gambas-user] ComboBox options from databse

Eduardo Huertas e.huertas at ...626...
Sun Sep 9 22:23:31 CEST 2007


Hello all,

Yesterday I decided to give Gambas a try, and I really was impressed
by the good work these hackers are doing. Keep it up!

Now, my question. I have a table (in a database) "items" with the
fields "id" (int) and "item" (string).
I would like to fill a ComboBox with these values, The desired
behavior is the ComboBox showing the string and returning the integer
as the selected value.
I have managed to add the strings as ComboBox options, but not the
id's, which are the values I would like to get returned.

I would like to know if what I am trying is possible, and of course,
some hint on how to do it.

I hope the question is clear.

Best regards,
Eduardo




More information about the User mailing list