Progress
External Program
Interfaces


Conversions From COM To Progress Data Types

Table B–2 lists the possible conversions from COM data types to Progress data types when accessing COM object properties, method return values, method output parameters, and event input parameters.

If the destination Progress data item has a different data type than the one listed in Table B–2, Progress tries to convert it. Also, if the COM data type returned to Progress does not match any of the COM data types listed in Table B–2, the Progress data item receives the unknown value (?).

NOTE: The names for COM data types in Table B–2 conform to a nomenclature used in the documentation for most COM objects. For matching alternatives to these names, seen in some documentation and COM object viewers, see Table B–3.

Table B–2: Conversions From COM To Progress Data Types
COM data type
Progress Data Type
Boolean
LOGICAL
Byte
INTEGER
Byte[]
RAW
Currency
DECIMAL
Date
DATE
Double
DECIMAL
Integer (2-byte integer)
INTEGER
Long (4-byte integer)
INTEGER
Object (Base)
COM-HANDLE
Object (COM)
COM-HANDLE
Single (Float)
DECIMAL
String
CHARACTER
Unsigned Byte
INTEGER
Unsigned Long (4-byte integer)
INTEGER
Unsigned Short (2-byte integer)
INTEGER

NOTE: Progress resolves any Pointer or Variant Pointer references to COM data types, then converts the value to the corresponding Progress data type.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095