Показать сообщение отдельно
Старый 28.01.2009, 04:10   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 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, напишите личное сообщение администратору.