PRB: Conflict Between SET REFRESH and BROWSE TIMEOUT

Last reviewed: May 16, 1996
Article ID: Q141144
The information in this article applies to:
  • Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS

With 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.

CAUSE

The 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.

RESOLUTION

Instead 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.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

Type the following commands in the Command window:

   SET REFRESH TO 4,4
   BROWSE TIMEOUT 5


Additional reference words: 2.60a FoxMac
KBCategory: kbprg kbprb
KBSubcategory: FxprgBrowse


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.