IsTrace

Description

Indicates whether tracing is enabled for a 4GL JSP target.

Applies to

psPage object

Syntax

psPage.IsTrace ( )

Returns

boolean

Usage

This method can be used to check before calling the Trace method multiple times.

Examples

Example 1

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
}

See also