PRB: Trace Window Appears During Program Execution

Last reviewed: June 27, 1995
Article 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 <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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.