OleVariant
Object List Next Object
Definition:
The OleVariant object providing access to Variant data types, such as those
passed via Automation interfaces.
Specialized Features:
The following tables list and describe the properties and methods added by OleVariant. There are no added events.
Properties Use to...
Data Access the Variant as a Long. (Read Only)
DataPtr Access the address of the Variant as a Long. (Read Only)
Size Show or set the size fo the Variant (in Bytes).
VarType Access the type number of the Variant
VarTypeDesc Display a text description of the Variant’s type (ReadOnly)
WideSize Show or set the size fo the Variant (in Wide characters).
Methods Use to...
Clear Clear the Variant and free any memory or interfaces.
CopyBstrData Copy the Variant to a DataBuffer object.
GetString Get a binary string Variant as a Null terminated chacter string.
SetString Set the Variant to a binary string copy of a string, converted to Wide
characters .
Copied Features:
None
this is a top-level object.
Details:
Variants are used by Ole Automation to pass property values and method
arguments. A Variant may hold many different types of data. It has space for data of
many different sizes, plus a tag which specifies which type of data it contains
(i.e. it is a discriminated union). Not all Variant types are support by
Phoenix, nor does Phoenix support a Variant data type. The OleVariant object extends
support for Ole automation by providing a means to access Variants. Using
OleVariant, data not directly supported by Phoenix can be passed to and from
Automation interfaces which require such data types.