Handling many choices in a ComboBox
I have a ComboBox that when my program is first run has only one option to pick from. As the user moves further along (by clicking a "Next Set" button), the ComboBox gets 4 more options added to it at a time until there are a total of 41 options to choose from.
Here lies my conundrum...As each option might be chosen at any time, I'd like some coding that will recognize which one had been. I really don't like the idea of using a Select Case structure 41 Cases long...and the idea if an If...Then sends chills down my spine.
If someone needs more info on what I'm doing to be able to help, just let me know. Thanks to any and all in advance.
As a side note...I know I left a post asking for help in databases earlier. To those who answered me then, thank you. I couldn't reply sooner as a small child decided to use my DVD-ROM as a place to store small marine lifeforms. That had to take priority.
:eek:
# 1 Re: Handling many choices in a ComboBox
Suppose your Combobox control is named Combo1 then Combo1.Text contains the highlighted text .
Suppose you 2nd item in the list is "name" and thats the selected item from the list then
Combo1.Text = "name"
Try this .
Good luck .
# 2 Re: Handling many choices in a ComboBox
I think you're pretty much stuck with SELECT...END SELECT or IF...THEN...END IF. VB does not support function pointer - so there is no way to call a function with the pointer.
Good Luck,
-Cool Bizs