Macros in X++
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
X++ provides several precompiler directives that you can use. The directives are processed before the resulting X++ code is given to the X++ compiler. These directives declare and handle macros and their values. The directives are removed by the precompiler so that the X++ compiler never encounters them. The X++ compiler only sees the sequence of characters written into the X++ code by the directives.
In This Section
How to: Distinguish Between Precompile and Compile Error Messages
How to: Use the #globaldefine Directive to Avoid Overwriting
See also
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.