PRB: GET VALID Routine Is Not Called When Switching WindowsLast reviewed: April 29, 1996Article ID: Q99609 |
The information in this article applies to:
SYMPTOMSThe GET VALID routine in a program is not called when the user switches between windows either by pressing CTRL+F1 or by choosing Next Window from the window's Control-menu box. To demonstrate this behavior, run the following program:
DEFINE WINDOW test1 FROM 2,2 TO 10,20 ; FLOAT ; GROW ; CLOSE ; SYSTEM ; TITLE "TEST1" ACTIVATE WINDOW TEST1 @ 2,2 GET x DEFAULT "Hello!" VALID hello() DEFINE WINDOW test2 FROM 12,2 TO 20,20 ; FLOAT ; GROW ; CLOSE ; SYSTEM ; TITLE "TEST2" ACTIVATE WINDOW TEST2 @ 2,2 GET y DEFAULT "Goodbye!" VALID hello() READ CYCLE CLEAR ALL PROCEDURE hello WAIT WINDOW WLAST() CAUSEThis is the expected behavior for FoxPro.
RESOLUTIONTo force the VALID routine to execute, place it in the READ DEACTIVATE clause. The following steps demonstrate how to do this through the FoxPro Screen Builder.
|
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |