| Data Type | Description | Example | Declaration Keyword |
| String | A string is a number of characters. X++ supports several types of strings: Left aligned, right aligned, fixed length or not fixed length. The maximum length of a string is 999 characters. | Name | str |
| Integer | An integer, also named a natural figure, is a number without a decimal point. | 1090 | int |
| Real | Reals, also named decimals, are numbers with a decimal point. | 3.14 | real |
| Date | The date type contains day, month, and year. | 10\29\1978 | date |
| UTC DateTime | Contains year, month, day, hour, minute and second. | 9/28/2008 07:11:02 am | utcDateTim e |
| Enum | Enum values are represented internally as integers. The first literal has the number 0, the next number 1, the next number 2, and so on. You can use enums as integers in expressions. | NoYes | Must be declared as a Base Enum first |
| Boolean | Booleans can only contain the values false and true. The enum values false and true are predefined in X++ and recognized by the compiler. | TRUE | boolean |
| Time | Contains hours, minutes, and seconds. To declare a time, use the system type timeOfDay. | 15:23:08 | timeOfDay |
| GUID | Global Unique Identifier (GUID) is a reference number which is unique in any context. | {3F2504E0- 4F89-11D3- 9A0C- 0305E82C3 301} | guid |
| Int64 | A large integer, represented by 64 bits. | 5637144579 | Int64 |
Data Types in X++
Views (481)
The following table provides an overview of the simple data types available in Microsoft Dynamics AX:

Like
Report
*This post is locked for comments