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 ++的詳細說明。