ActivePython ASP comobject.getCOMObject() does not work

Mark Hammond MarkH at ActiveState.com
Thu Jul 19 19:29:07 EDT 2001


Jochen Riekhof wrote:

> 
> rst = getRecordset()
> 
> Now, I want to use the recordset:
> rst.MoveFirst()
> 
> and get the following error:
> Python ActiveX Scripting Engine (0x80020009)
> Traceback (innermost last): File "<Script Block >", line 5, in ?
> rst.MoveFirst() AttributeError: 'tuple' object has no attribute 'MoveFirst'
> /OrboPCT/pytest.asp, Zeile 15
> rst.MoveFirst()


This means that "getRecordset()" is actually returning _2_ values - the 
recordset itself, and some other value (possibly a boolean or some such).

You will probably find that you need something like:

ok, rst = getRecordset()

or maybe the other way around:

rst, ignored = getRecordset()

Mark.




More information about the Python-list mailing list