Can't use global/public constant in switch/case ?

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu