METHOD:  Stream::SetEOS

Implemented in version 2.5

streamobject.SetEOS

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.

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

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information