LogSettings method

Applies to

Example

Description

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.

Syntax

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.

Return value

None.

Remarks

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.

Classic methods

SetLogMask, SetLogDevice