I want to have one XPO, and have the same code work on AX4 and AX5. I am looking for a precompiler directive to check the version, sort of like:
#if define AX4
thisCode(...)
#else
thatCode(...)
#endif
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks like the
SysDataExpImpmacro library may have a version based macro calledexpFormatwhich you could use like this:You could also use a macro that is only found in AX 2009. The
AotExportmacro library has macros for each type of AOT object and Data Sets were introduced in 2009: