Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Missing expression in SWITCH statement

Scroll Prev Up Next More

This compiler error will occur if there is no expression following a switch keyword.

 

For example:

switch                  
    case 1
        // do something
endswitch

In the above example, the compiler expects to see an integer or string expression following (and on the same line as) the switch keyword.

 


Topic 109610, last updated on 17-Oct-2026