End Switch

Command group Flag affected Reversible Execute on client Platform(s)
Constructs NO NO YES All

Syntax

End Switch

Description

This command terminates a Switch statement and defines the point where method execution continues after each Case statement.

Example

# Select the correct graph window depending on the graph type selected in the pGraphType parameter.

# Declare Parameter GraphType (Short integer (0 to 255))
Switch pGraphType
  Case kGRpie
    Open window instance wGraphPieWindow
  Case kGRbars,kGRarea,kGRlines
    Open window instance wGraph2DWindow
  Case kGR3D
    Open window instance wGraph3DWindow
End Switch