The WIN32OLE::VariantType module includes constants of VARIANT type constants. The constants is used when creating WIN32OLE::Variant object.

obj = WIN32OLE::Variant.new("2e3", WIN32OLE::VARIANT::VT_R4)
obj.value # => 2000.0
Constants

OLEProperty is a helper class of Property with arguments, used by ‘olegen.rb`-generated files.

represents VT_EMPTY type constant.

represents VT_NULL type constant.

represents VT_I2 type constant.

represents VT_I4 type constant.

represents VT_R4 type constant.

represents VT_R8 type constant.

represents VT_CY type constant.

represents VT_DATE type constant.

represents VT_BSTR type constant.

represents VT_USERDEFINED type constant.

represents VT_PTR type constant.

represents VT_DISPATCH type constant.

represents VT_ERROR type constant.

represents VT_BOOL type constant.

represents VT_VARIANT type constant.

represents VT_UNKNOWN type constant.

represents VT_I1 type constant.

represents VT_UI1 type constant.

represents VT_UI2 type constant.

represents VT_UI4 type constant.

represents VT_I8 type constant.

represents VT_UI8 type constant.

represents VT_INT type constant.

represents VT_UINT type constant.

represents VT_ARRAY type constant.

represents VT_BYREF type constant.