Win32OLE: how to pass parameters by reference?


On 1/2/07, Jan S. removed_email_address@domain.invalid wrote:


I need to call an OLE method that takes a VARIANT argument, and fills
it with data. How can I accomplish this? Somewhere in the ruby-cvs
attic I’ve found WIN32OLE_VARIANT, unfortunately it is removed now.

Long obj.GetX(varX As Variant)

long is success/error, varX is the actual value for X.
invoke_kind of the method is FUNC.

I’ll answer my own question:

Later I’ve even found that there’s a .rd doc file, that doesn’t made
it into rdoc.

Another place that would need more documentation, especially