Microsoft KB Archive/189916

= BUG: SET("DEBUGOUT") Returns Filename After SET DEBUGOUT TO =

Article ID: 189916

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q189916



SYMPTOMS
You issue a SET DEBUGOUT TO to direct debug output to a file. Subsequently, you issue a SET DEBUGOUT TO to direct output to the Debug Output window. If you then check the return value of SET("DEBUGOUT"), it will continue to indicate that DEBUGOUT is directed to the file.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
  Run the following code from a program (.prg) file: CLEAR ?1, SET("DEBUGOUT") SET DEBUGOUT TO TestDebg.Txt ?2, SET("DEBUGOUT") DEBUGOUT "Set to file" SET DEBUGOUT TO     DEBUGOUT "Not set to file" ?3, SET("DEBUGOUT") MODIFY FILE TestDebg.Txt NOWAIT 

The file TestDebg.txt will be displayed containing the text "Set to file." This is expected behavior. The SET DEBUGOUT TO is working properly, as the second DEBUGOUT statement is not sent to the file.

You will get the following output printed to the screen:

1

2 \TESTDEBG.TXT

3 \TESTDEBG.TXT

This is not expected behavior. The line following the 3 should be empty, as is the line following the 1.

You may change the SET DEBUGOUT TO, and SET("DEBUGOUT") will then return the new file name, but to clear the return value, you must restart Visual FoxPro. Otherwise, SET('debugout') will return the most recent file name it was set to for the remainder of the Visual FoxPro session.

Additional query words: kbVFp500abug kbXBase

Keywords: kbbug kbpending KB189916

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.