GoTo Case Statement

Causes a statement Select…Case to calculate again with a different expression.

Syntax

GoTo Case expression [ Tol tolerance ]
or
GoTo Case Else

Parts

expression
An expression with a data type compatible with the test expression in the line Select.
tolerance
Optional floating-point expression. See Tol Clause for more information.
Else
Causes execution to move to Case Else.

Instructions

GoTo Case typically causes the construct Select to execute again with a different test expression. Each Case calculates again, until a test is true. Then its related block executes.

If no expressions of Case are true, or you use GoTo Case Else, then execution moves to the block after Case Else, if there is one, or to the statement after End Select.

Examples

TODO

See also