SET AUTOSAVE Command

See Also

Determines whether Visual FoxPro flushes data buffers to disk when you exit a READ or return to the Command window.

Syntax

SET AUTOSAVE ON | OFF

Arguments

ON

Specifies that buffers be flushed to disk whenever you exit a READ or return to the Command window.

OFF

Specifies that buffers be flushed to disk only if five minutes have elapsed since the last flush occurred, and only when you exit a READ or return to the Command window.

OFF is the default for SET AUTOSAVE.

Remarks

Flushing buffers may reduce the chance of data loss if your computer loses power.

SET AUTOSAVE is scoped to the current data session.