From: Masaki Suketa Date: 2006-03-27T19:43:00+09:00 Subject: Re: WIN32OLE#[] and WIN32OLE#[]= method in Ruby 1.9 (or later) Hello, In message "Re: WIN32OLE#[] and WIN32OLE#[]= method in Ruby 1.9 (or later)" on 06/03/25, "Dave Burt" writes: > I haven't used obj[prop, n] before, that I can recall. I think neither that > nor setproperty() are the ideal Ruby syntax for this operation, but [] seems > better. How about this: > > > record ["StringData", 1] = 'dddd' > > record.setproperty("StringData", 1, 'dddd') > > record[:StringData][1] = 'dddd' Thank you. It is very interesting. I think about it. > (I realize there's 'win32ole/property' already, but I don't know exactly > what its purpose is.) It is helper class of early binding of WIN32OLE. For example, ext/win32ole/sample/olegen.rb uses it. And, ruby olegen.rb 'Microsoft ActiveX Data Object N.N Library' creates some property which uses OLEProperty. Yes, it is not so convenient. Regards, Masaki Suketa