Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.44 KB

write-method.md

File metadata and controls

45 lines (35 loc) · 1.44 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords apitype
Write Method
Write Method
rothja
jroth
01/19/2017
sql
ado
reference
_Stream::raw_Write
_Stream::Write
Write method [ADO]
COM

Write Method

Writes binary data to a Stream object.

Syntax

  
Stream.Write Buffer  

Parameters

Buffer
A Variant that contains an array of bytes to be written.

Remarks

Specified bytes are written to the Stream object without any intervening spaces between each byte.

The current Position is set to the byte following the written data. The Write method does not truncate the rest of the data in a stream. If you want to truncate these bytes, call SetEOS.

If you write past the current EOS position, the Size of the Stream will be increased to contain any new bytes, and EOS will move to the new last byte in the Stream.

Note

The Write method is used with binary streams (Type is adTypeBinary). For text streams (Type is adTypeText), use WriteText.

Applies To

Stream Object (ADO)

See Also

WriteText Method