AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 01.11.2012, 11:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
Malaysia: Macros
Источник: http://axmas.blogspot.com/2012/10/macros.html
==============


#define.Text('This is a test of macros')
#define.Number(200)

static void Datatypes_macro_library(Args _args)
{
// Referencing macro library has to be done in the class declaration
// or in the declaration like in this example
#MacroTest

;
info(strfmt("Text: %1. Number: %2", #Text, #Number));
}



Local Macro

static void Local_Macro(Args _args)
{
// Define the local macro #localmacro.WelcomeMessage { info("Welcome to Carz Inc.");
info("We have the best offers for rental cars");
}

#endmacro;

// Use the local macro
#WelcomeMessage
}





Источник: http://axmas.blogspot.com/2012/10/macros.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
fatihdemirci: Macros in axapta Blog bot DAX Blogs 0 29.09.2010 12:05
jinx: Dynamics AX – Macros und schließende Klammern Blog bot DAX auf Deutsch 0 05.06.2010 04:09
November princess: Malaysia to retire 1 sen. How to handle it in Dynamics AX? Blog bot DAX Blogs 0 21.03.2008 09:05
Malaysia: How to get the PC Name and IP Blog bot DAX Blogs 5 22.01.2008 16:26
Issues concerning X++: Macros - Definitions and Pitfalls Blog bot DAX Blogs 0 15.11.2007 09:20

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 22:12.