ADODB Object
 
Syntax
 
streamobject.SetEOS
 
Description
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.
See Also
Example
 
If (objStream.EOS = false) Then
   objStream.SetEOS = objStream.Position
End If