PRB: Closeable Window Does Not CLEAR READ When ClosedLast reviewed: February 7, 1996Article ID: Q109151 |
The information in this article applies to:
SYMPTOMSWhen you define a window as closeable and use a READ command on that window, if a user clicks the close box in FoxPro for MS-DOS or chooses Close from the Control menu in FoxPro for Windows, the window will be deactivated but the READ command will not be cleared.
RESOLUTIONTo clear the READ command, put a CLEAR READ command or a RETURN .T. command in the WINDOW DEACTIVATE clause of that window. When the user closes the window, the DEACTIVATE clause will execute and the READ command will be cleared. For example:
CLEAR CLEAR ALL x=SPACE(20) DEFINE WINDOW aaa FROM 1,1 TO 20,60 FLOAT CLOSE ACTIVATE WINDOW aaa @ 5,5 GET x READ CYCLE DEACTIVATE testclose() Function Testclose if !WVISIBLE('aaa') clear read return .t. else return .f. endif |
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |