Determines whether to and how frequently to update a browse window or memo editing window, or to refresh local memory buffers with changes from other users on the network.

SET REFRESH TO nSeconds1 [, nSeconds2]

Parameters

nSeconds1

Specifies the number of seconds between updating the display for a browse window or memo editing window. nSeconds1 can be an integer value from 0 (default) to 3,600 seconds. Setting nSeconds1 to 0 does not update the records that you are viewing.

NoteNote

Fractional values are truncated. If you specify a value other than 0 for nSeconds1 and omit nSeconds2, then nSeconds2 is set to the same value as nSeconds1. However, if you specify 0 seconds for nSeconds1 and omit nSeconds2, then nSeconds2 is set to 5 seconds.

[, nSeconds2]

Specifies the number of seconds between refreshing the local memory buffers with current data from the network. The default value is 5 seconds. Setting nSeconds2 to 0 does not refresh the buffers.

NoteTip

You can improve performance by increasing the value of nSeconds2. You can also set this option in the Data tab of the Options dialog box.

The following table describes values for nSeconds2.

nSeconds2 Description

-1

Always read data from disk.

0

Always use data in memory buffer but do not refresh buffer.

.001 to 3,600

Refresh local memory buffers every number of seconds specified. Fractional values are accepted.

NoteNote

For display purposes, Visual FoxPro rounds the value of nSeconds2 to the closest millisecond.

Expand imageRemarks

Expand imageSee Also