PRB: PAUSE Key Does Not Function in FoxPro for Windows

ID: Q98697

The information in this article applies to:

SYMPTOMS

When you are executing a program file in FoxPro for Windows, pressing the PAUSE key does not halt execution of the program. In FoxPro versions 2.0 and later for MS-DOS, pressing the PAUSE key will stop a program's execution.

CAUSE

The Windows-based version of FoxPro interprets the PAUSE key differently than the MS-DOS-based versions do. This behavior is normal for a Windows- based application.

RESOLUTION

To work around this behavior, do one of the following:

MORE INFORMATION

To reproduce this problem, create the following program and name it TEST.PRG:

   FOR A=1 TO 100000
   ? A
   ENDFOR

This program will scroll numbers down the screen. If this program is executed in FoxPro for MS-DOS, pressing the PAUSE key will halt the program; you must press the ENTER key to resume execution. In FoxPro for Windows, however, pressing the PAUSE key does not stop the program.

Additional reference words: FoxWin 2.50 2.50a KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995