ADO » Stream » SetEOS

Version: 2.5

Syntax:
streamobject.SetEOS

Sets the value of the EOS property to be the current position.

The SetEOS method is used to set the current position to be the end of the stream (EOS). If any data exists beyond the newly set EOS, it will be truncated and permanently lost.

Remember that you can use the Position property to set the position in the data. Also, the CopyTo, Write, and WriteText properties do not truncate.

Examples

Code:
If (objStream.EOS = false) Then
   objStream.SetEOS = objStream.Position
End If

See Also: