0% 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.

Uploaded by

Pallab Datta
Copyright
© © All Rights Reserved
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% 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.

Uploaded by

Pallab Datta
Copyright
© © All Rights Reserved
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
You are on page 1/ 1

Select Case ..

End Select

SELECT CASE variable


CASE value
statement
CASE value1, value 2, value 3
statement
CASE value1 TO value2
statement
CASE ELSE
statement
END SELECT

You might also like