Forum: Ruby on Rails Setting value of a indexed property of an OLE object

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Seyit Caglar Abbasoglu (Guest)
on 2009-03-03 10:07
(Received via mailing list)
I suspect this question is not directly related by Rails but perhaps
users on this list know an answer for this

I have an OLE object which has an indexed property on it (something like
In C# (or similar languages) I set the value of one of the elements in
indexed property such as this

MyOLEObject myObject = new MyOLEObject();
myObject["property name"] = "property value";

While using ruby Win32Ole api, if I use square brackets as I use in C#,
get the error " Unkown property or method 'property name' ".
I suspect this is because ruby Win32Ole api tries to set a real propery
the object such as name = "property value" which is not possible.

Can you give me any directions about how to solve this problem, aka
an indexed property through Win32OleApi
This topic is locked and can not be replied to.