Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.12 KB

seteos-method.md

File metadata and controls

36 lines (29 loc) · 1.12 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords apitype
SetEOS Method
SetEOS Method
rothja
jroth
01/19/2017
sql
ado
reference
_Stream::raw_SetEOS
_Stream::SetEOS
SetEOS method [ADO]
COM

SetEOS Method

Sets the position that is the end of the stream.

Syntax

  
Stream.SetEOS  

Remarks

SetEOS updates the value of the EOS property, by making the current Position the end of the stream. Any bytes or characters following the current position are truncated.

Because Write, WriteText, and CopyTo do not truncate any extra values in existing Stream objects, you can truncate these bytes or characters by setting the new end-of-stream position with SetEOS.

Caution

If you set EOS to a position before the actual end of the stream, you will lose all data after the new EOS position.

Applies To

Stream Object (ADO)