Changes

Visual Basic Flow Control

299 bytes added, 15:02, 8 August 2007
Evaluating Multiple Possibilities using Select Case
&nbsp;&nbsp;&nbsp;&nbsp;...<br>
'''End Select'''
 
As with most programming concepts, this is best explained using examples. The following code excerpt shows a ''Select Case'' construct which takes specific action depended on the value of a String variable:
 
<pre>
Dim strCity As String = "London"
 
Select Case strCity
Case "Paris"
Message