Home > Language Reference > Classes > StreamFileDB

Flush Method

Flushes cached data to storage.

Syntax

Public Sub Flush()

Remarks

The Flush method writes the content of the buffer associated with the file to storage. Like most of this object's functionality, calling this method causes a runtime error if the file has not previously been opened using the Open method.

Usually, you don't need to call this function directly. Buffers are maintained by the operating system, which determine the optimal time to write the data to the storage heap. You should call this function only when you must ensure that critical data is written.

The method is implicitly called when you close a file with the Close method.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A