[Gambas-user] Combo box
Jeff
jeff at ...2103...
Thu Mar 12 14:46:05 CET 2009
Hi All,
First post, so forgive me newbie-ness.
If I use the add method to add rows to a combo box I specify an index:
Eg:
ComboBoxProjects.Add("ZZ", 0)
ComboBoxProjects.Add("AA", 1)
Then in a button click event I use the index property to get the
selected row:
PRINT ComboBoxProjects.Index
This is fine until I set the sort property to true on the combo box. The
order of the text changes but the index remains the same, so selecting
the AA row gives me an index of 0, not 1 as expected.
Any ideas? What am I doing wrong?
I am using Gambas 2.7.1 on Ubuntu Ibex
More information about the User
mailing list