PDA

View Full Version : ComboBox using list of numbers


saltzmanjoelh
01-07-2009, 07:35 PM
I have an arraycollection of numbers 40-100
I set the combobox dataProvider to myAC

I have an object with a value in it and I want to use that value as the selected index. for example:
selectedIndex = myObj.volume or
selectedItem = myObj.volume

how do I set the selectedIndex to number 45 without saying
selectedIndex = 6

it seems that the items in the AC all have memory references so I cant just set the selectedItem to myObj.volume since its value is a different memory reference.