STAR-LINK™
86
7
7.2 METHOD
METHOD DATAWRITE
PURPOSE
Sends data to a device.
DESCRIPTION
This method sends data as a string to a particular device. This operation is allowed
only when working in the DataEvent handler.
If the DataWrite command is not right, the control sends an error event
(ErrorEvent).
The possible values for the vt data parameter of this method are: VT_BSTR, VT_UI1,
VT_I2, VT_I4, VT_R4, VT_R8. In all these cases the control internally converts data
to be sent to an array of bytes having length Len.
IDL
[id(7), helpstring("method DataWrite")] HRESULT DataWrite([in] VARIANT Data, [in]
short Len, [out,retval] VARIANT_BOOL *bRet);
INPUT PARAMETERS
Data as VARIANT
Len as Short
OUTPUT VALUE
BOOL (TRUE if the sending data thread has been successfully created)
Commentaires sur ces manuels