Powered By Blogger

Friday, March 19, 2010

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

Try this and see the output
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");

No comments:

Post a Comment