Programming with Reflection
StartTrace method
Syntax object.StartTrace FileType, IfFileExists, Filename
Starts recording a trace file. You can use the Trace feature to record data transmissions to and from the host, or as a series of Reflection methods. These files are used for troubleshooting.
FileType Argument type: Enumeration
The type of trace file:
rcDataFromHost
The trace file will contain data transmissions to and from the host.
rcCommands
The trace file will contain Reflection methods.
IfFileExists Argument type: Enumeration
Specifies an action to take if the file you specify already exists:
rcAskUser
Prompts the user to overwrite the existing file, append new data to the existing file, or cancel the save. An error results if the user then clicks Cancel.
rcOverwrite
Replaces the existing file.
rcOpenError
Causes StartTrace to return an error.
Filename Argument type: String
The file to which commands are recorded.