All primitive Java data types are automatically converted to native ActiveX
Automation types. However, not all Automation data types are converted to
Java types (for example, VT_DATE). Variant data types are used for data conversion.
Variant data types are a requirement of any Automation interface, and are
used automatically by Visual Basic and VBScript. The tables below provide
details about how primitive data types are converted between Automation types
and Java types.
Java Type |
Variant Type |
Visual Basic Type |
Notes |
|
VT_I1 |
Byte |
Byte in Visual Basic is unsigned, but is signed in Java.
See Byte Helper Function. |
- boolean
- java.lang.Boolean
|
VT_BOOL |
Boolean |
|
|
VT_I2 |
Integer |
|
|
VT_I4 |
Long |
|
|
VT_CY |
Currency |
|
|
VT_R4 |
Single |
|
|
VT_R8 |
Double |
|
|
VT_BSTR |
String |
|
|
VT_BSTR |
String |
|
n/a |
VT_DATE |
Date |
Not available. java.util.Date objects are represented
as normal Object Proxy objects. |