[RESOLVED] Problems with CASE Statements
Ok I have a CASE statement in my program and I want to add to conditions onto the end of each selection but for some reason it wont let me.
Here's my code just now
VB Code:
Select Case ButtonCounter
Case 1
Call Question1
Case 2
Call Question2
Case 3
Call Question3
.... etc
End select
I would LIKE it to look like this
VB Code:
Select Case ButtonCounter
Case 1
Call Question1 [B]And icorrect = 2[/B]
Case 2
Call Question2 [B]And icorrect = 3[/B]
Case 3
Call Question3 [B]And icorrect = 1[/B]
.... etc
End select
For some reason it doesn't like this though and says that there is an "expected end of statement".
Can someone help me to get this to work?
Thanks.
Re: Problems with CASE Statements
Do you mean
VB Code:
Case (1 And iCorrect = 2)
?
Re: Problems with CASE Statements
Quote:
Originally Posted by penagate
Do you mean
VB Code:
Case (1 And iCorrect = 2)
?
Thanks, but it doesn't say to call question one which I need it to do.
Re: Problems with CASE Statements
Well I left it out... can't you add it yourself?
Re: Problems with CASE Statements
No sorry I get what you mean now, that does work.
Thanks. :)
Noob talking
Re: Problems with CASE Statements
No worries. :)
Remember to mark your thread as resolved ;)