Topic group Related topics
Writes data buffers for the current work area to disk.
Use FLUSH to protect data integrity.
When you open a table, dBASE Plus loads a certain number of records from that table into a memory buffer, along with the portion of each open index that pertains to those records. When another block of records needs to be read or when you close tables, dBASE Plus writes the records in the buffer back to disk, storing any modifications you have made.
FLUSH allows you to save information from the data buffer to disk on-demand, without closing the table. Use FLUSH when you need to store critical information to disk that could otherwise be lost. However, don't use FLUSH too frequently, as it slows execution. For example, in an order-entry application in which only a few orders are entered each hour, FLUSH can save data that might be lost if the power is inadvertently turned off; since orders are entered infrequently, the time needed to execute FLUSH is not important.
Use the Rowset objectís flush(†) method.