Trace Method
The Trace method writes a message to the OpenROAD Trace window and/or the OpenROAD log file (%II_SYSTEM%\ingres\files\w4gl.log), depending upon the platform and the setting of the -T flag on the command line. For a description of the -T flag, see the Workbench User Guide.
This method has the following syntax:
ProcExec.Trace(text = nvarchar(2000) | string = StringObject[, destination = tracedestination])
This method has the following parameters:
text
Specifies the message to print. The message can be any expression that evaluates to an nvarchar string. You must cast numeric or date variables to varchar and enclose string literals in single quotes.
string
Specifies the string to print.
destination
Specifies the destination of the text or string to print:
TD_LOG
(Default) Writes output to log file/Trace window, depending on -L and -T command line flags. For a description of the -T flag, see the Workbench User Guide.
TD_STDOUT
Writes output to stdout
TD_STDERR
Writes output to stderr
The Trace method automatically appends a newline character to the end of the message.