The ReadArray method reads data from virtual serial port input buffer and returns as VARIANT type variable of Byte array.
VARIANT ReadArray( LONG Count // the number of bytes to read );
- Count [in]: The number of bytes to be read from the port.
Return Values : The ReadArray read communication data from remote serial port and returns it as variable of
VARIANT type of
Byte array (VT_ARRAY | VT_UI1).
byte Buff; Buff = axVSPortAx1.ReadArray(20) as byte;
Dim Buff() As Byte Buff = AxVSPortAx1.ReadArray(10)