# BUG: CLEAR Command Doesn't Clear Popup in FoxPro for Windows

ID: Q114583

The information in this article applies to:

- Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

## SYMPTOMS

The CLEAR command does not clear a popup.

## RESOLUTION

To temporarily remove a popup from the screen, use the HIDE POPUP command. To redisplay the popup, use the SHOW POPUP command.

## STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for Windows. 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

Execute this code to reproduce the problem. In FoxPro for MS-DOS and dBASE IV 2.0, the popup will disappear when the ENTER key is pressed to call PROCEDURE myx. In FoxPro for Windows, the popup will not disappear.

       SET COMPATIBLE DB4

       DEFINE POPUP x FROM 10,10
       DEFINE BAR 1 OF x PROM "Hello"
       DEFINE BAR 2 OF x PROM "Bye"
       ON SELECTION POPUP x DO myx
       ACTIVATE POPUP x
       RELEASE POPUPS x

       PROCEDURE myx

       CLEAR
       ? "cleared"
       wait

       RETURN

Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 differences buglist2.50 buglist2.50a buglist2.50b buglist2.60 KBCategory: kbprg kbbuglist KBSubcategory: FxinteropDbase

Last Reviewed: June 28, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use.