Purpose
Builds an expression-based conditional branching of programmatic flow.
Select Case provides a simplified method for comparing an expression or conditional command to a series of possible expressions (cases).
If the case is TRUE, the commands following the case are executed. Each case in the selection structure is executed accordingly.
Syntax
Select Case TestExpression
[Case [Is | # To #] ExpressionList [Commands]]
[Case Else [Commands]]
End Select
Is |
Allows you to use comparison operators. |
To |
Allows you to compare and test a range of values for an expression. |
End Select |
Each Select Case selection structure must end with these keywords. |
|