WriteVariant Method

The WriteVariant method writes data stored in array of VARIANT type to serial port. This method could be used in ASP technology.  

LONG WriteVaiant(
 VARIANT Data// number of bytes to write

  Data     [in] The variable of Variant type which contains the array of VARIANT (BYTE).
Return Values
  The WriteVariant method returns the number of bytes to write to the port
Remarks   If serial port does not exist the return value is 0 (zero).

See also

Read method, ReadStr method, WriteStr method, ReadVariant method