我想有一个XPO,并有相同的代码在AX4和AX5上工作。我正在寻找一个预编译器指令来检查版本,有点像:
#if define AX4
thisCode(...)
#else
thatCode(...)
#endif发布于 2010-07-05 09:30:36
看起来SysDataExpImp宏库可能有一个名为expFormat的基于版本的宏,您可以像这样使用它:
#SysDataExpImp
#if.expFormat('EXPFORMAT VER. 5.0')
info('Microsoft Dynamics AX 2009');
#endif
#if.expFormat('EXPFORMAT VER. 4.01')
info('Microsoft Dynamics AX 4.0 SP1');
#endif您还可以使用仅在AX2009中找到的宏。AotExport宏库为2009年引入的每种类型的AOT对象和数据集提供了宏:
#AotExport
#if.expDataSet
info('Microsoft Dynamics AX 2009');
#endif
#ifnot.expDataSet
info('older than Microsoft Dynamics AX 2009');
#endifhttps://stackoverflow.com/questions/3173746
复制相似问题