Overview of User-Defined Data Types

User-defined data types extend the basic types of variables provided by ATEasy. User-defined data types can be defined in the Types submodule under either a module or under a DLL library.

ATEasy provides three user-defined data types:

●        Structure is a data storage object that contains one or more fields (or elements) grouped in a sequential memory area. Unlike an array, which restricts its members to a single data type, a structure can contain fields of different data types. Each field can be one of the ATEasy basic or user-defined data types.

For more information on structures, see About Structures.

●        Typedef renames existing data types. For example, renaming the data type Float to Real or renaming Bool to Logical.

For more information on Type definitions, see Overview of Typedefs.

●        Enum is an enumerated type consisting of a set of named constants called enumerators. The first enumerator has a default value of 0 with each successive enumerator having a value larger than the previous one. However you can specify a value for a particular enumerator. Enum has a long integer type. For example, an Enum called Colors has the constants Red, Green, and Blue with each constant assigned a numeric value.

For more information on enumerations, see About Enumerated Type.