Topic group Related topics
Determines if dBASE Plus writes data to disk each time a record is changed or added.
SET AUTOSAVE on | OFF
Use SET AUTOSAVE ON to reduce the chances of data loss. When SET AUTOSAVE is ON and you alter or add a record, dBASE Plus updates tables and index files on disk when you move the record pointer. When SET AUTOSAVE is OFF, changes are saved to disk as the record buffer is filled.
Since dBASE Plus periodically saves table changes to disk, in most situations you don't need to SET AUTOSAVE ON. SET AUTOSAVE OFF lets you process data faster, since dBASE Plus writes your changes to disk less often.
AUTOSAVE is always OFF. To force data to be written to disk, call the Rowset objectís flush(†) method in the onSave event.