Help w/combo boxes
Posted on 1999-01-29
I am designing a database type program that the user will be able to add a name to a combobox, then when they want to acess the data under that name, they click on the name in the combobox. I know this is quite simple...BUT...i need to know how to get the data from the combobox without using about 500 if..then loops(up to 500 items can be stored). So instead of typing- if combo1.index = 1 then...
if combo1.index = 2 then...
how would i have the program like KNOW what the currently selected index value is. I have defined a type that has the item's name, price, date purchased, and additional info. These are all filled into different text boxes and then when u click a button, it clears these boxes and adds the name of the item to the combobox. thats basically how the program works, just to clarify it for ya. thx