TraceOff Method for an Application
The TraceOff method turns off tracing that the TraceOn method starts. This method does not return any information.
Format
Application.TraceOff
No arguments are available.
Used With
COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script
Examples
This following example in Siebel VB sets the value in the Sales Stage field to the first value in the drop-down list for the field. It uses tracing to track the result:
Sub BusComp_NewRecord
   TheApplication.TraceOn "C:\lvpick.doc", "SQL", ""
   Dim oBC as BusComp
   set oBC = me.GetPicklistBusComp("Sales Stage")
   With oBC
      .SetViewMode AllView
      .ActivateField "Sales Stage Order"
      .ClearToQuery
      .SetSortSpec "Sales Stage Order"
      .ExecuteQuery ForwardOnly
      if .FirstRecord then
         .Pick
      end if
   End With
   set oBC = Nothing
   TheApplication.TraceOff
End Sub