To use an enumerated type outside of the module in which it is declared, make it public.
The following example shows use of an enumerated type in a procedure code:
if( clr = clrRed ) then
print "Red detected"
else if( clr = clrBlue ) then
print "Blue detected"
else if( clr = clrGreen ) then
print "Green detected"
endif
Since you cannot change the value of a constant with a program statement, do not declare an enumerated type as a VAR.
For information on how Public declarations affect use of variables, see How ATEasy Searches for Variables. For information on variables, see Overview of Variables.