Different Results When Running Same .PRG File

Last reviewed: April 17, 1995
Article ID: Q98438
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SUMMARY

When you are running more than one session of FoxPro for MS-DOS in the Windows version 3.1 operating environment and are running the same .PRG file in these sessions, the results will differ from one session to another.

This behavior occurs because TALK is set to ON by default in the first session of FoxPro for MS-DOS, but it is set to OFF in subsequent sessions of FoxPro. To get the same results in each session, set TALK to ON in additional sessions of FoxPro.

MORE INFORMATION

Steps to Reproduce Problem

  1. Run FoxPro for MS-DOS under Windows.

  2. In the Command window, type:

          modify command test.prg.
    

  3. In the TEST.PRG window, type:

          a=1
          DO WHILE a > 0
    
            ??a
            a=a+1
          ENDDO
    
    

  4. Press CTRL+W to save TEST.PRG.

  5. In the Command window, type:

          do test.prg
    

    Two columns of numbers will appear, scrolling indefinitely.

  6. Press ESC to cancel the program.

  7. Run a second session of FoxPro for MS-DOS under Windows.

  8. In the Command window, type:

          do test.prg
    

    Eight columns of numbers will appear, scrolling indefinitely.

Setting TALK to ON in the second session of FoxPro will correct the problem, resulting in two columns of numbers displaying rather than eight.


Additional reference words: FoxDos FoxPro DOS Fox TALK 2.00 2.50 2.50a
KBCategory: kbprg
KBSubcategory:


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: April 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.