PRB: Trace Window Appears During Program Execution

ID: Q110915

The information in this article applies to:

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 <viewfile> 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.

MORE INFORMATION

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.

REFERENCES

FoxPro for MS-DOS "Interface Guide," version 2.0, "Using the View Window" FoxPro for MS-DOS "User's Guide," version 2.5, pages U8-20 to U8-27 FoxPro for Windows "User's Guide," version 2.5, pages U7-6 to U7-17

Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b indices 2.60 KBCategory: kbprg kbprb KBSubcategory: FxtoolDebug

Last Reviewed: June 27, 1995