Virtual Serial Port ActiveX Control - WriteArray Method

The WriteArray method writes data to virtual serial port as a BYTE array of VARIANT type.  

LONG WriteArray(
  VARIANT Buffer, // data buffer
);

Parameters
  Buffer     [in] This is variable of VARIANT type that contains an array of Bytes (VT_ARRAY | VT_UI1).
Return Values
  The WriteArray function returns the number of bytes written to virtual serial port.
Remarks   If virtual serial port was not created, the return value is 0 (zero). This method is identical to Write, however is specially created for VB6, C#, VB.Net development environments.

VB.NET example:

  Dim Buff(3) As Byte
AxVSPortAx2.WriteArray(Buff)

C# example:

  byte[] Buff = new byte[10];
AxVSPortAx2.WriteArray(Buff);

See also

Read method, ReadStr method, Write method, WriteStr method