Supported data types
COM Automation supports a well-known set of data types such as structures and arrays. The COM Automation adapter supports SAFEARRAY array types. Structures are supported in the preferred form and secondary form.
Other types such as record sets and multidimensional arrays are not supported.
Data Type | Example | Length |
---|---|---|
VT_I2 | 32767 | Number of characters that make up the number |
VT_I4 | 7729976 | Number of characters that make up the number |
VT_R4 | 8822.333 | Number of characters that make up the number including decimal point |
VT_R8 | 88222.7776 | Number of characters that make up the number including decimal point |
VT_DATE | MM/DD/CCYY | 10 always |
VT_BSTR | A string | Number of characters in the string |
VT_ERROR | 0x80000001 | 10 always (must be hex) |
VT_BOOL | 0, 00, -1 | 1 or 2 always (2 chars needed for `-1') |
VT_UI1 | X | 1 always |
VT_VOID | (empty) | 0 always |
VT_INT | 7729976 | Number of characters that make up the number |
VT_UINT | 7729976 | Number of characters that make up the number |
VT_U12 | 7729976 | Number of characters that make up the number |
VT_U14 | 7729976 | Number of characters that make up the number |
VT_CARRAY | Not available | Number of elements in an array |
VT_USERDEFINED | Ref.123 | 12 characters maximum |
Note: Each of the numerals could include a leading negative
(-) sign. All parameter types are variable length.