Member attributes: Dimension

This attribute determines the size of an array member.

Syntax

unsigned‑integer

unsigned‑integer,unsigned‑integer, ...

Discussion

The attribute Dimension determines the capacity of the corresponding array member expressed in the maximum number of elements, the array can store at the runtime. In its simplest form, the attribute consists of a single unsigned-integer literal. Thus declared arrays are considered as one-dimensional. In turn, multidimensional arrays are declared with the attribute containing several unsigned integer literals (one for every array dimension) separated by the , comma sign. To evaluate the actual size of an already declared array use the size instant property.

Modify the attribute

To inspect or modify the value of a Dimension attribute, select first the affected array member. Thereupon, the attribute is listed in the middle area of Inspector:

Inherited members

Please note, the Dimension attribute can't be modified if the array member is inherited from a base class.