Programming Reference Manual
 
Syntax
 
Result = object.Write(Buffer [, Count])
 
Description
Write one or more bytes from the stream. Writing starts at the Position property. Set Position to change the position
 
Part
Description
object
Evaluates to a DartStream object.
Buffer
Uninitialized String or Byte Array. Where data is being written from.
Count
Optional Long. Specifies how much data is to be written.
Result
Returned Long. Indicates how much data was written.
 

Remarks

If the Count parameter is omitted, then this method writes the entire contents of the Buffer parameter. After the data is written the Position is advanced Count bytes.
 

Error Codes

The Clear method may generate the following error codes (refer to the ErrorConstants topic for a complete list of error codes):
  • ptInvalidParam1
  • ptInvalidParam2
  • ptNoBufferSpace 
 
See Also