WriteArray Method

Writes array of data to the port.

Syntax

Visual Basic
Sub WriteArray(DataBuffer As Byte, BytesToWrite As Long) 
Delphi
procedure WriteArray(DataBuffer: array of Byte, BytesToWrite: Integer); 
Visual C++ (MFC)
void WriteArray(VARIANT DataBuffer, LONG BytesToWrite);
Visual C++ (#import)
void WriteArray(VARIANT DataBuffer, LONG BytesToWrite);

Parameters

DataBuffer

[in] Buffer of data to be written.

BytesToWrite

[in] Size of buffer in bytes.

Errors

The method may throw exception. Use GetLastError method to get the error code.

ftvspcErrorFailed 1 The operation has not been completed.
ftvspcErrorInvalidParameter 2 Invalid parameter.

See Also

Attach, Read