GoTo Case Statement
Causes a Select statement to be re-evaluated with a different expression.
GoTo Case expression [ Tol tolerance ]
GoTo Case Else
- Required unless Else is used. An expression with a data type compatible with the test expression in the Select clause.
- Optional. See Tol Clause for more details.
- Required unless expression is used.
The GoTo Case statement typically causes the Select block to re-execute, replacing the original test expression with a different one. Each Case clause is re-evaluated, using the usual rules, until a match is found.
If no Case expression matches, or you use the form GoTo Case Else, execution transfers to the Case Else, if one exists, or to the statement following the End Select clause otherwise.