Can't use global/public constant in switch/case ?
- Posted by AndySerpa Feb 16, 2011
- 1307 views
If using a global or public constant(s) declared in another file in a switch statement, it won't resolve. Is this known?
constant C1 = 1, C2 = 2, C3 = 3 switch x do case C1 then ... case C2 then ... case C3 then ... end switch
The above works, but if C1, etc are declared in an included file (as global or public), it doesn't work, although those constants seem available otherwise.