Consultor Eletrônico



Kbase 16593: Conversion from Progress to Variant Data Types with ActiveX
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Verified

GOAL:

Conversion from Progress to Variant Data Types with ActiveX

FIX:

The following table describes the possible conversions from Progress data types to VARIANT data types, such as for method input parameters and the setting of properties.  If the source Progress variable is of a different type than the one shown, Progress tries to convert the value to match the required VARIANT data type.  If the conversion fails, an error occurs.

The VARIANT data types which are not supported for conversion from Progress include:

1)  VT_EMPTY
2)  VT_EMPTY & VT_BYREF
3)  VT_NULL
4)  VT_NULL & VT_BYREF
5)  VT_VARIANT
6)  VT_ARRAY

PROGRESS DATA TYPE VARIANT TYPE COMMENTS
================== ============ ======================================
CHARACTER VT_BSTR

DECIMAL VT_R8

DECIMAL VT_R4 Requires type qualifier: AS FLOAT or
type library: VT_R4.

DECIMAL VT_CY Requires type qualifier: AS CURRENCY
or type library: VT_CY.

DATE VT_DATE

INTEGER VT_I4

INTEGER VT_I2 Requires type qualifier: AS SHORT or
type library: VT_I2.

INTEGER VT_UI1 Requires type qualifier: AS UNSIGNED-
BYTE or type library: VT_UI1.

INTEGER VT_ERROR Requires type qualifier: AS ERROR-CODE
or type library: VT_ERROR.

LOGICAL VT_BOOL

COM-HANDLE VT_DISPATCH

COM-HANDLE VT_UNKNOWN Requires type qualifier: AS IUNKNOWN
or type library: VT_UNKNOWN.

Unknown Value VT_NULL

CHARACTER VT_BYREF & Requires type qualifier: BY-POINTER or
VT_BSTR type library: VT_BSTR & VT_BYREF.

DECIMAL VT_BYREF & Requires type qualifier: BY-POINTER or
VT_R8 type library: VT_R8 & VT_BYREF.

DECIMAL VT_BYREF & Requires type qualifier: AS FLOAT
VT_R4 BY-POINTER or type library: VT_R4 &
VT_BYREF.

DECIMAL VT_BYREF & Requires type qualifier: AS CURRENCY
VT_CY BY-POINTER or type library: VT_CY &
VT_BYREF.

DATE VT_BYREF & Requires type qualifier: BY-POINTER or
VT_DATE type library: VT_DATE & VT_BYREF.

INTEGER VT_BYREF & Requires type qualifier: BY-POINTER or
VT_I4 type library: VT_I4 & VT_BYREF.

INTEGER VT_BYREF & Requires type qualifier: AS SHORT
VT_I2 BY-POINTER or type library: VT_I2 &
VT_BYREF.

INTEGER VT_BYREF & Requires type qualifier: AS UNSIGNED-
VT_UI1 BYTE BY-POINTER or type library:
VT_UI1 & VT_BYREF.

INTEGER VT_BYREF & Requires type qualifier: AS ERROR-CODE
VT_ERROR BY-POINTER or type library: VT_ERROR &
VT_BYREF.

LOGICAL VT_BYREF & Requires type qualifier: BY-POINTER or
VT_BOOL type library: VT_BOOL & VT_BYREF.

COM-HANDLE VT_BYREF & Requires type qualifier: BY-POINTER or
VT_DISPATCH type library: VT_DISPATCH & VT_BYREF.

Any Data Type VT_BYREF & Requires type qualifier: BY-VARIANT-
VT_VARIANT POINTER or type library: VT_PTR &
VT_BYREF pointing to a VT_VARIANT.