Writes array of data to the port.
| 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);
|
DataBuffer
[in] Buffer of data to be written.
BytesToWrite
[in] Size of buffer in bytes.
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. |