BUG: Form Not Released When Focus on Grid and Modal Form Started (178666)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q178666 SYMPTOMS
A form, on which a grid has focus, remains visible after the form has been
programmatically released and a modal form has been instantiated. The form
containing the grid remains visible until the modal form has been released.
RESOLUTION
Set the visible property of the form containing the grid to False (.f.)
before releasing the form, using the following code:
PROCEDURE closescreens
IF _SCREEN.FORMCOUNT > 0
FOR i = _SCREEN.FormCount TO 1 STEP -1
_SCREEN.FORMS(i).VISIBLE=.F.
_SCREEN.FORMS(i).RELEASE
ENDFOR
ENDIF
RETURN
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
| Modification Type: | Major | Last Reviewed: | 5/12/2003 |
|---|
| Keywords: | kbBug kbcode KB178666 |
|---|
|