Syntax 8: For opening trace files
Description
Opens the specified trace file for reading.
Applies to
TraceFile object
Syntax
1 |
instancename.Open ( filename ) |
Argument |
Description |
---|---|
instancename |
Instancename of the TraceFile object |
filename |
A string identifying the name of the trace file you |
Return value
ErrorReturn. Returns one of the following values:
-
Success! — The function succeeded
-
FileAlreadyOpenError! — The specified trace file has already
been opened -
FileOpenError! — The trace file can not be opened for
reading -
FileInvalidFormatError! — The file does not have the correct
format -
EnterpriseOnlyFeature! — (Obsolete) This function is
supported only in the Enterprise edition of PowerBuilder 12.6 and
earlier versions. -
SourcePBLError! — The source libraries cannot be found
Usage
You use this syntax to access the contents of a specified trace
file created from a running PowerBuilder application. You can then use
the properties and functions provided by the TraceFile object to perform
your own analysis of tracing data instead of using the available
modeling objects.
Examples
This example opens a trace file:
1 2 3 4 5 6 |
TraceFile ltf_file String ls_filename ltf_file = CREATE TraceFile ltf_file.Open(ls_filename) ... |
See also