ActivePython ASP comobject.getCOMObject() does not work
Jochen Riekhof
jochen at riekhof.de
Fri Jul 20 05:19:21 EDT 2001
> ok, rst = getRecordset()
> rst, ignored = getRecordset()
Weird, in the corresponding VB-page, only a Recordset is returned. Lets
see...
...yes you're right:, rst[0].MoveFirst() does work. But how can that happen,
the VB-Codeof the Middle-Tier component method returning the recordset
reads:
...
Dim objRst As New ADODB.Recordset
...
Call objRst.Open(objCmd)
Set objRst.ActiveConnection = Nothing
...
Set QryMeasurementsByMachineTypeID = objRst
where objRst is an ADODB.Recordset
The python-asp-code is (now, removes getRecordset() python-function for
clarity):
import win32com.client
pctRead = win32com.client.Dispatch("OrboPCT.OrboPCTRead")
rst =
pctRead.QryMeasurementsByMachineTypeID(Application("OrboPCTConnection"), 2)
rst[0].MoveFirst() //works?!
Is this in general with VB-COM-Components?
Ciao
...Jochen
More information about the Python-list
mailing list