X ++是一种面向对象的语言,与C#有相似之处。 X ++是用于构建会计和业务管理系统的MorphX开发平台的一部分。
MSDN: X ++编程指南
版 | 附加信息 | 发布日期 |
---|---|---|
7 | Dynamics 365 for Finance and Operations,Enterprise Edition | 2016年3月1日 |
6 | Dynamics AX 2012 | 2011-08-01 |
五 | Dynamics AX 2009 | 2008-06-02 |
4 | Dynamics AX 4.0 | 2006-06-09 |
3 | Dynamics AX 3.0 | 2002-10-01 |
2 | Dynamics AX 2.5 | 2000-12-01 |
此示例将引导用户创建一个可以在Dynamics AX中运行X ++代码的作业。
应用程序对象树(AOT)中有一个名为Jobs的节点。可以在“作业”节点下添加此示例,然后可以运行该作业。
在Dynamics Axe中,打开AOT(应用程序对象树)。
导航到Jobs并右键单击该节点。
单击“ 新建作业” ,这将导致Ax打开代码编辑器窗口。
在代码编辑器中输入以下文本。您可以按F5运行代码。
static void Job1(Args _args) // Job1 will be the name of the job in the AOT
{
; // This semicolon is necessary to mark the end of variable declarations in versions AX 2009 and lower. If you are interested in the details see https://stackoverflow.com/questions/1976080/is-semicolon-really-needed-after-declarations-in-x
info('Hello world.'); // Shows the text "Hello world" in a dialog called "infolog"
}
有关设置或安装x ++的详细说明。