Library tutorials & articles
Select Case statement
By James Crowley, published on 14 Jul 2001
Introduction
The Select Case statement is an alternative to the If...Then...Else statement. It also makes code easier to read especially when testing lots of different conditions. It also makes the code more efficient.
Related articles
Related discussion
-
Key_Press() event for text box
by Aquila (1 replies)
-
Regarding Visual Basic Programme
by manjunathsl2007 (0 replies)
-
how do you hide all in VB6
by CapnJack (1 replies)
-
Problem with Input File
by novavb6 (3 replies)
-
How to produce a txt file with a table??
by novavb6 (1 replies)
You want Case "SomeString", "NoString".
This below code segment throws casting exception
Select Case str1
Case "SomeString" Or "NoString"
Response.Write("OK")
Case "SmallString" And "BigString"
Response.Write("AND here")
End Select
Can you please explain the structure of Case statement in detail ?
Thanx in Adv.
If you put the Case Is statement first, will it run this message box and not look at the others?
This thread is for discussions of Select Case statement.