Hi, the feature you expierenced are parameterized properties. This is only supported by VB and could only be emulated in python. If you use makepy/gencache to generate a wrapper the appropriate Set methods are created:
oR.SetItem(1,2, "4") Stefan > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mike Howard > Sent: Wednesday, April 12, 2006 1:12 AM > To: python-list@python.org > Subject: Help needed on COM issue > > I'm doing some conversion of vb code to python code and I > have a problem with a COM object > > Specifically in VB I can do > Set oR = oA.Action > debug.print oR.Item(1,2) > [returns say "1"] > oR.Item(1,2)="4" > debug.print oR > [returns "4"] > > In Python I need to do .. > > oR=oA.Action() > print oR.Item(1,2)[0] > [returns say "1"] > oR.Update > [saves the record with the new item] > > But when I ty to update the value > > oR.Item(1,2)[0]="4" > > I get a TypeError : object doesn't support item assignment. > > I presume this is because Python is returning oR as a tupe - > hence the need to refer to Item(1,2)[0] - but I can't figure > out the equivalent method to update the value I need. > > Any help appreciated. > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list