Microsoft KB Archive/110915

{| = PRB: Trace Window Appears During Program Execution =
 * width="100%"|

ID: Q110915

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b, and 2.6
 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, and 2.6
 * Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS
The Trace window appears during program execution even though no SET STEP ON or SET ECHO ON command was issued.

CAUSE
A SET VIEW TO command was issued, and ECHO was ON when the View file was created.

RESOLUTION
Make sure that ECHO is OFF when you create View files.

Steps to Reproduce Behavior
1. In the Command window, issue the following commands:

USE customer SET ECHO ON     CREATE VIEW myview 2. Create a program with the following commands: WAIT WINDOW "hello" SET VIEW TO myview WAIT WINDOW "good-bye" 3. Run the program above. Note that the Trace window appears with the last line of the program highlighted. The most common use of a View file is to save a specific environment containing information about which files are open, which indexes are in use and what relations have been set. This information can be accessed through the View panel of the View window. However, the View file also saves other settings (including the current status of SET ECHO), which are then restored with when the SET VIEW TO command is issued. These settings can be viewed through the On/Off, Files, and Miscellaneous panels of the View window.

Other settings saved with the View file are SET PROCEDURE and SET FIELDS.