Composite Data Types in X++: Arrays, Structs, and Enums Explained
Table of Content:
The composite data types in X++ are listed in the following table.
Composite data types |
Description |
---|---|
Arrays |
An array is a list of items with the same data type and the same name—only the index differs. |
Containers |
A container is a dynamic list of items containing primitive data types and/or some composite data types. |
Classes as Data Types |
A class is a type definition that describes both variables and methods for instances (objects) of the class. |
Delegates as data types |
A delegate collects methods that subscribe to the delegate. The delegate specifies the parameter signature that all its subscriber methods must share. When the delegate is called, the delegate calls each of its subscribers. |
Tables as Data Types |
All tables defined in the database can be handled as class definitions. |