SetLogDevice(Device As Long)

Application object

Sets the logging function to one of the following:

0

No logging.

1

Log to debug window. You need a Windows debugging application to do this.

2

Reserved for internal use.

3

Shows a top-level window in which the log is displayed.

4

The log output is placed in a file in FORMS’ Log folder, namely:

In Windows XP and Windows Server 2003: C:\Program Files\ReadSoft\FORMS\Log

In the newer operating systems: C:\Users\Public\ReadSoft\FORMS\Log

Otherwise as specified by the LogFile setting in Ehlocal.ini.

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.

The method is used with the SetLogMask method.

The Application object