Help with Select Case Statement
Ok, I have used this one in a while. I usually just use IF...THEN statements. How should I set this up?
VB Code:
Select Case
Case 1 ' Option button 1 is selected on my form
'do stuff here
Case 2 ' Option button 2 is selected
etc.
Enc Select
I got an erro after I typed "Select Case" and hit enter. Something like expected expression. what am I leaving out?
Man I screwed up that post...
I can't type today!!!!!!!!!!
Re: Help with Select Case Statement
Quote:
Originally posted by hipopony66
Ok, I have used this one in a while. I usually just use IF...THEN statements. How should I set this up?
VB Code:
Select Case
Case 1 ' Option button 1 is selected on my form
'do stuff here
Case 2 ' Option button 2 is selected
etc.
Enc Select
I got an erro after I typed "Select Case" and hit enter. Something like expected expression. what am I leaving out?
hopefuly you didnt spell it "Enc Select" in your code:p
Well, how bout this to ponder on!
Thanks Martin, I think that's what I need. How bout this though? I've heard good a bad things about this. What if I created a control array with 6 option buttons called optWhatToDo, and then use a Select case statement with the index values of the control? Can anyone say anything good or bad about control arrays?? The VB class I took last semester used them a lot, but I never used them before the class and rarely do now.