User Defined Enumeration and Structure Types

Enumerated types are encoded as a series of symbolic names as either 8 or 16 bit values. The 16 bit representation is used automatically when there are more than 255 elements in the set.


Note that in addition to the values listed, the value zero is always included. An enumerated constant value is denoted with a lead dot.


You can also specify a zero-based range of unsigned numbers as an enumeration. The maximum upper bound is 65535. A standard type, Bit, has a range of 0 to 1.


Structures combine a set of data elements along with optional micro and macro declarations. Like primitive types, each field is initialized unless you code a question mark for the initial value.


To access a field in a structure use: Variable`Field

This example declares two global variables of the type Key and shows how the fields are referenced.

Pointer Variable

Array Variable