Visual Basic.NET Programming. Beginner Lesson 12. Select Case



Visual Basic.NET Programming. Beginner Lesson 12. Select Case

Visual Basic.NET Programming. Beginner Lesson 12. Select Case

This is the twelfth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson you will learn about an alternative to the block IF construct, namely, the SELECT CASE construct. You will see that SELECT CASE can also be used to execute one block of code or another, depending on the outcome of a test. The video demonstrates how a group of CASE statements can be used to test the contents of one variable for different possible values. The video also mentions the SWITCH construct; something very similar to SELECT CASE that you may come across in other programming languages such as C# and Java, and in pseudocode.

Comments are closed.