Set the value of a integer type variable = to the corresponding element in a combobox list with preset items. I can assume that Apples holds an index of 0? So is there a way I can locate the corresponding index value of the preset combobox and assign it to an integer accordingly?
i.e.
not quite sure on how to approach this
i.e.
Code:
combobox1.items.add("Apples")
combobox1.items.add("Pears")
combobox1.items.add("Oranges")
dim x as integer = combobox1.items(???)