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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.01.2009, 04:10   #1  
Blog bot is offline
Blog bot
Участник
 
25,477 / 846 (79) +++++++
Регистрация: 28.10.2006
gatesasbait: How to temporarily suppress infolog messages in Dynamics Ax (deux)
Источник: http://gatesasbait.spaces.live.com/B...B9F5!298.entry
==============

 
Good afternoon,
 
My previous post on the topic was flawed. Here's a better solution when you want a section of code not to report to the infolog, but still want previous messages to be shown at the end of execution.
 
public static void suppressInfolog(Args _args)
{
    int i;
    ;
 
    info("A");
    i = infolog.line();
 
    info("B"); //Section of code that will not get reported to the infolog
 
    if (infolog.line() > i)
        infolog.cut(i+1, infolog.line());
    info("C");
}
 
Only "A" and "C" will be displayed, "B" will have been suppressed.
 
Keywords: X++, infolog, xinfo




Источник: http://gatesasbait.spaces.live.com/B...B9F5!298.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics AX: Managing Your Supply Chain Using Microsoft Dynamics AX 2009 - Book Review Blog bot DAX Blogs 0 31.03.2009 23:06
gatesasbait: Dynamics Ax 2009 SSRS report deployment under Server 2008 (deux) Blog bot DAX Blogs 0 11.02.2009 23:05
gatesasbait: How to temporarily suppress infolog messages in Dynamics Ax Blog bot DAX Blogs 0 10.12.2008 00:06
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 11:08.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.