-

Data Types Parser Error (DTP0020): Integer literal expected.

The data types parser expects an INTEGER literal in the declaration of an enumeration at the underlined code position.

When assigning a value to an enumeration element, this is only allowed using a constant but not using a variable.

Error examples: In the first declaration, a variable is specified, in the second invalid declaration, the value is missing at all. The third declaration line is correct.

Further Info
For information on user-defined data types and how to declare them refer to the chapter "User-defined data types".