Win32ole problem with put property

But I can’t figure out how to put a column value? In VB, the
following works…

oRecord.StringData(1) = “new value”

But neither of these work in Ruby…

oRecord.StringData(1, “new value”)
oRecord.StringData(1) = “new value”

Any ideas anyone?

I had this in VB:

VB: newrole.Value(“Name”) = role_data.role_name

I did it this way in Ruby

newrole.setproperty(‘Value’, ‘Name’, role_data.role_name)

So maybe you can do:

oRecord.setproperty(‘StringData’, ‘1’, “new value”)

… not sure if that’ll work.

Chris

So maybe you can do:

oRecord.setproperty(‘StringData’, ‘1’, “new value”)

… not sure if that’ll work.

Thanks, the following did the trick!

oRecord.setproperty('StringData', 1, "new value")