Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Primitive Data Types [AX 2012]

Updated: September 21, 2011

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The primitive data types in X++ are listed in the following table. For more information about each data type, click its link.

Anytype

A placeholder for any data type.

Booleans

Can only contain the values false and true.

Dates

Contains day, month, and year.

Enums

An abbreviation for enumerated text—a set of literals.

GUIDs

A globally unique identifier.

Integers

A number without a decimal point. To declare an integer, use the keyword int.

Reals

Numbers with a decimal point; also called decimals.

Strings

A number of characters. To declare a string, use the keyword str.

TimeOfDay

Contains hours, minutes, and seconds. To declare a time, use the system type timeOfDay.

utcdatetime

Contains year, month, day, hour, minute and second.

NoteNote

Most of the primitive data types can be automatically converted.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.