PRB: CLEAR EVENTS in Modal Form Does Not Clear a READ (130387)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q130387 SYMPTOMS
A modal form is run from a program with a DO FORM command followed by a
READ EVENTS. A command button on the form has the following method in its
Click event:
RELEASE THISFORM
CLEAR EVENTS
When the button is clicked, the form is released but the READ EVENTS is not
cleared.
CAUSE
When a modal form is displayed, execution of a program is suspended. Modal
forms do not require a READ EVENTS. In the case described in this article,
the READ EVENTS command has not yet been executed when the CLEAR EVENTS is
issued. Program execution is suspended.
RESOLUTION
Do not use the READ EVENTS command if you have a modal form or form set. To
verify the modality of your form, check the value of the WindowType
property. When a form is modal, the WindowType property is equal to 1. For
more information about displaying modal forms or form sets, search for the
WINDOWTYPE property or the SHOW method in the Visual FoxPro Help menu.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/11/2000 |
---|
Keywords: | KB130387 |
---|
|