Indicates whether tracing is enabled for a 4GL JSP target.
psPage object
psPage.IsTrace ( )
boolean
This method can be used to check before calling the Trace method multiple times.
This example checks to see if tracing is on using the IsTrace method. If tracing is not on, it turns tracing on, prints out a trace statement, and turns tracing off:
boolean bTraceOn;
bTraceOn = psPage.IsTrace();
If (!bTraceOn) {
psPage.SetTrace(true); // turn on trace
psPage.Trace("print out some trace information");
psPage.SetTrace(false); // turn off trace
}