Microsoft KB Archive/98438

{| = Different Results When Running Same .PRG File =
 * width="100%"|

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.

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:
 * }