Skip to content

gmplConstantStatement

Constant is a terminal, substatement of the Class statement. It has no refactoring or declaration flags associated with it.

The attributes of the Constant statement are as follows:

AttributeDescription
IdThis attribute is the identifier of the constant. It must be unique within the scope of the class
containing it. The identifier is not case-sensitive.
TypeThis attribute is a Type attribute as discussed on the Declaration page. It
specifies the type of the constant. If omitted, String is assumed.
ValueThis required attribute contains the value associated with the constant.

The script errors associated with the Constant statement are as follows:

ErrorDescription
1040Constant command missing required id attribute.
1041Unable to store constant vector: %1d
1042Constant command missing required value attribute.