GetData

Retrieves the current block of data and stores it in a variable of type variant. GetData only supports BSTRs, and arrays of integer.

Syntax

object.GetData data

The parts of the GetData method syntax are described in the following table.

Part Description
data Where retrieved data will be stored after the method returns successfully.

Remarks

It is common to use the GetData method with the DataArrival event, which includes the totalBytes argument. If you specify a maxlen that is less than the totalBytes argument, you will get the warning 10040, indicating that the remaining bytes will be lost.