Data type conversion

When using COM from sanScript, the data types you use for variables and fields must be compatible with the COM properties and methods you are accessing. The following table lists the Dexterity data types and the corresponding COM types.

[spacer]

Dexterity type

COM type

Description

Boolean

VT_BOOL

Boolean

Byte

VT_UI1

Unsigned character

Integer

VT_I2

Short

Long

VT_I4

Long

String

Text

VT_BSTR

String

Currency

VT_CY

Currency

Vcurrency

VT_R4

VT_R8

VT_DECIMAL

Single

Double

Decimal

Date

Time

Datetime

VT_DATE

Date

Reference

VT_DISPATCH

IDispatch*

A typed COM reference

VT_UNKNOWN

IUnknown*



Documentation Feedback