RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleStream.Write Method

Writes Count bytes from Buffer to the current position in the Ole stream and updates the current position by Count bytes.

Pascal
function Write(const Buffer; Count: Longint): Longint; override;
C++
virtual __fastcall Longint Write(const  Buffer, Longint Count);

Use Write to write Count bytes to the Ole stream, starting at the current position. Write uses the stream interface to transfer the information from Buffer. 

All the other data-writing methods of an Ole stream (WriteBuffer, WriteComponent) call Write to do their actual writing. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!