Microsoft KB Archive/97055

{| = PRB: Hidden Command Window Won't Return in FoxPro for Windows =
 * width="100%"|

ID: Q97055

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5x, 2.6

SYMPTOMS
The following code used to hide the Command window removes the Command window and does not bring it back in FoxPro for Windows if it is run from a .PRG file:

DEFINE WINDOW hidecom FROM 1,1 TO 3,3 ACTIVATE WINDOW command IN hidecom DEACTIVATE WINDOW hidecom ACTIVATE WINDOW command IN SCREEN If the code above is run from the Command window, this problem does not occur.

RESOLUTION
The following code can be used to work around this problem and bring back the window:

ACTIVATE WINDOW hidecom ACTIVATE WINDOW command IN SCREEN Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
 * }