, - :
type
TMyEnum = (meVal1, meVal2);
const
MY_ENUM_VALS: array[TMyENum] of integer = (1, 3);
if (aVal = MY_ENUM_VALS[meVal2]) then...
Not really, I give you, but at least you get a bit more compiler errors for those early versions of Delphi.
source
share