
IF intExprResult <> 0
{
Trace.Debug("Execute completed with result (10119)")
strTemp = "BrightForms exception caught."
strTemp = strTemp & " Could not execute the expression."
strTemp = strTemp & " Make sure 'test.txt' file exists."
Trace.Error(strTemp, 50012)
strTemp = "Executing statement (SELECT COUNT(*)"
strTemp = strTemp & " AS CUST_COUNT FROM CUST_INSPECTION)"
Trace.Info(strTemp)
}
Note:
Use the Trace object to create user defined messages on BrightForms trace file, this can be used to display error messages when an expression did not execute as required. These messages will be written to the trace file depending on the trace level from BrightForms System Settings.
strTemp – a string variable, assigned the message to be written to the trace file. Concatenate (&) operand is used for readability.