Escondendo as mensagens “info” temporáriamente.
25
Jan
2009
Posted by: Ricardo Pichler in: X++
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");
} |
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");
}
Apenas “A” e “C” serão exibidos, “B” foi escondido.
Fonte.
[]s
Ricardo Pichler
Leave a reply