Sometimes it is useful to log what is going on in FORMS especially when debugging your own VB(A) code. This method allows you to log events and methods used. The log can be sent to a file or to a window on the screen.
Object.LogSettings ( LogDevice, LogOptions )
|
Part |
Data type |
Description |
|
Object |
Object |
An object expression that evaluates to an object in the Applies To list. |
|
LogDevice |
Integer |
The parameter LogDevice determines where the log is sent to. The value must be one of the values specified in Log device constants. |
|
LogOptions |
Integer |
The parameter LogOptions determines which events and/or methods to log. The value must be any of the values specified in Log setting constants. |
None.
When logging to a file, the file name has the format Fxxxlog.txt, where xxx is replaced by 3 letters signifying which of FORMS’ modules is being used, as shown below. If the file does not exist, it is created. If it already exists, the new output is appended to the end of the file.
|
Fmnglog.txt |
Log file created by Manager. |
|
Fscalog.txt |
Log file created by Scan. |
|
Fitrlog.txt |
Log file created by Interpret. |
|
Fverlog.txt |
Log file created by Verify. |
|
Ftralog.txt |
Log file created by Transfer. |