Ok, i have a list in the combobox, and i have the ItemData.. now whenever i put the value for the item (eg 1,2,3, etc.) it resets to 0, what is going on, and how can i go around this?
Printable View
Ok, i have a list in the combobox, and i have the ItemData.. now whenever i put the value for the item (eg 1,2,3, etc.) it resets to 0, what is going on, and how can i go around this?
I dont really understand the question, but what code are you using at the moment?
this:
I have a list, and each one has a different number associated to it, so here is a sample of what i mean:PHP Code:Combo1.ItemData(Combo1.ListIndex)
General = 1
News = 2
Games= 13
Time = 3
But when i use the ItemData property to place the values, the simgle digit numbers get reset to 0..
VB Code:
Combo1.AddItem "General" Combo1.ItemData(Combo1.NewIndex) = 1