PRB: Conflict Between SET REFRESH and BROWSE TIMEOUTLast reviewed: May 16, 1996Article ID: Q141144 |
The information in this article applies to:
SYMPTOMSWith the line "BROWSE TIMEOUT 5 " the Browse window should time out after five seconds if there is no user input, but it doesn't time out. NOTE: The TIMEOUT parameter used with the BROWSE command will only work when code is being run outside of the command window, for example in a .prg file.
CAUSEThe SET REFRESH command is refreshing the Browse window before the timeout occurs. The Browse considers the Refresh as user input therefore a timeout never occurs.
RESOLUTIONInstead of the SET REFRESH command, use field validation on the browse to refresh the Browse window. For example, create and run this program:
BROWSE FIELDS field1:v=myvalid() TIMEOUT 5 title "Mytitle" FUNCTION MYVALID FLUSH SHOW WINDOW MYTITLE REFRESH RETURN .T. STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorType the following commands in the Command window:
SET REFRESH TO 4,4 BROWSE TIMEOUT 5 |
Additional reference words: 2.60a FoxMac
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |