Class: WIN32OLE_VARIANT
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/win32ole/win32ole_variant.c |
Overview
WIN32OLE_VARIANT
objects represents OLE variant.
Win32OLE converts Ruby object into OLE variant automatically when invoking OLE methods. If OLE method requires the argument which is different from the variant by automatic conversion of Win32OLE, you can convert the specified variant type by using WIN32OLE_VARIANT
class.
param = WIN32OLE_VARIANT.new(10, WIN32OLE::VARIANT::VT_R4)
oleobj.method(param)
WIN32OLE_VARIANT
does not support VT_RECORD variant. Use WIN32OLE_RECORD class instead of WIN32OLE_VARIANT
if the VT_RECORD variant is needed.