Home > Language Reference > Classes > StreamFileDB

Truncate Method

Truncates the file from the current pointer position.

Syntax

Public Sub Truncate()

Remarks

The Truncate method deletes all the data contained between the current pointer position and the end of the file. The stream pointer position is not modified, only the size of the file is reduced if necessary. 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.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A