Trace Examples

Example 1. Creating user defined messages on BrightForms trace file.

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: