Visual Basic tutorial for everyone

Visual Basic 2010 Lesson 10- Using Select Case

In the previous lesson, we have learned the If…Then…Else control structure. In this lesson, you will learn another way to control the program flow in Visual Basic 2010, that is, the Select Case control structure. Select Case control structure is slightly different from the If….Else…Then control structure. The difference is that the Select Case control structure typically only make a decision on one expression. On the other hand, the If …Then…Else statement control structure may evaluate only one expression, or it may also compute entirely different dimensions. Select Case is preferred when there exist multiple conditions.