BUG: Popup Not Cleared in FoxPro for Windows

Last reviewed: May 6, 1997
Article ID: Q113277
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 5.0a
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

SUMMARY

In FoxPro 2.6 for MS-DOS and in dBASE, the CLEAR command will clear (hide) a popup. However, in FoxPro for Windows, the CLEAR command does not clear the popup.

RESOLUTION

See "Workaround" in the "More Information" section below.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start FoxPro for Windows.

  2. Type the following in the Command window and press ENTER:

          MODIFY COMMAND test
    

  3. Enter the following code in the TEST.PRG window:

          SET COMPATIBLE TO DB4
          DEFINE POPUP x FROM 10,10
          DEFINE BAR 1 OF x PROMPT "Hello"
          DEFINE BAR 2 OF x PROMPT "Bye"
          ON SELECTION POPUP x DO myx
          ACTIVATE POPUP x
          RELEASE POPUP x
    

          PROCEDURE myx
          CLEAR
    
          *HIDE POPUP x   && remove asterisk from this line to correct the
          *problem
          WAIT WINDOW "Cleared"
    
    

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

  5. In the Command window type:

          DO TEST.PRG
    

Note that the POPUP is not cleared when you press the ENTER key or the SPACEBAR.

Workaround

Remove the asterisk from the line that reads "*HIDE POPUP X". The line should now read as follows:

   HIDE POPUP x


Additional query words: pop-up disappear
Keywords : buglist2.50 buglist2.50a buglist2.50b buglist2.60 vfpbug5.0a kbbuglist
Version : 2.5 2.5a 2.5b 2.6 3.0 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


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: May 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.