Member attributes: ConstantType

This attribute determines the type of a constant member.

Syntax

data‑type

Discussion

The attribute ConstantType determines the data type of the value (or values) stored in a constant member. Please note, unlike mutable variables, a constant can't store any references. It is thus not possible to configure a constant with a reference data type like object, property reference, class, slot or even handle.

Modify the attribute

To inspect or modify the value of a ConstantType attribute, select first the affected constant member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the available assistant you can activate by clicking on the button right to the attribute. The assistant lists all non-reference data types available in the project:

Inherited members

Please note, the ConstantType attribute can't be modified in derived constant variants.