The SELECT CASE statement in Visual Basic allows you to evaluate a variable and execute different code blocks depending on its value. The variable is compared to the values listed after each CASE statement and if it matches, the related code block is run. A range of values can also be specified using TO, and an optional ELSE block runs if no other CASE matches.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
49 views1 page
Select Case
The SELECT CASE statement in Visual Basic allows you to evaluate a variable and execute different code blocks depending on its value. The variable is compared to the values listed after each CASE statement and if it matches, the related code block is run. A range of values can also be specified using TO, and an optional ELSE block runs if no other CASE matches.