LOTUSSCRIPT/COM/OLE CLASSES


Truncate method
Example

Deletes the contents of a stream.

Defined in

NotesStream

Syntax

Call notesStream.Truncate

Usage

This method raises an error if the stream is read-only. See IsReadOnly.

When a stream is truncated, property values are:


Closing a stream with zero bytes deletes the associated file.

Language cross-reference

truncate method in Java Stream class

Example