PRB: Hidden Command Window Won't Return in FoxPro for Windows

Last reviewed: June 27, 1995
Article 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


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