Home > Language Reference > Classes > StreamMemory

Truncate Method

Truncates the stream 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 stream. The stream pointer position is not modified, only the size of the stream is reduced if necessary. If prior to the call, the memory block held by the StreamMemory object resides in the storage heap, it is first copied into the dynamic heap.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A