Kbase 16597: Conversion From Variant to Progress Data Types With ActiveX
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Verified
GOAL:
Conversion from Variant to Progress Data Types with ActiveX
FIX:
The following table describes the possible conversions from VARIANT data types to Progress data types, such as for method output parameters and the assignment of properties into Progress variables.
If the destination Progress variable is of a different type than the one shown, Progress tries to convert the value to match the variable's data type. If the conversion fails, an error occurs.
The VARIANT data types which are not supported for conversion to Progress include:
1) VT_EMPTY
2) VT_EMPTY & VT_BYREF
3) VT_NULL
4) VT_NULL & VT_BYREF
5) VT_VARIANT
6) VT_ARRAY
VARIANT TYPE PROGRESS DATA TYPE
======================== ==================
VT_BSTR CHARACTER
VT_R8 DECIMAL
VT_DATE DATE
VT_I4 INTEGER
VT_BOOL LOGICAL
VT_DISPATCH COM-HANDLE
VT_R4 DECIMAL
VT_CY DECIMAL
VT_I2 INTEGER
VT_UI1 INTEGER
VT_BYREF & VT_BSTR CHARACTER
VT_BYREF & VT_R8 DECIMAL
VT_BYREF & VT_DATE DATE
VT_BYREF & VT_I4 INTEGER
VT_BYREF & VT_BOOL LOGICAL
VT_BYREF & VT_DISPATCH COM-HANDLE
VT_BYREF & VT_R4 DECIMAL
VT_BYREF & VT_CY DECIMAL
VT_BYREF & VT_I2 INTEGER
VT_BYREF & VT_UI1 INTEGER