[IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Vernon Cole
I've hit my next sticking point in porting adodbapi. code snippit try: import win32com.client def Dispatch(dispatch): return win32com.client.Dispatch(dispatch) win32 = True except ImportError: # implies running on IronPython from System import Activator, Type def

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Curt Hagenlocher
On Wed, Aug 27, 2008 at 12:17 PM, Vernon Cole [EMAIL PROTECTED] wrote: We can't pass the ra parameter in python, so pywin32 returns a tuple with the recordset and the number of records. How do I retrieve the number of records (for a non-row-returning query) in Iron? Presumably, Execute

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Shri Borde
: [IronPython] Return value for ADODB .Execute() call? On Wed, Aug 27, 2008 at 12:17 PM, Vernon Cole [EMAIL PROTECTED] wrote: We can't pass the ra parameter in python, so pywin32 returns a tuple with the recordset and the number of records. How do I retrieve the number of records (for a non-row

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Vernon Cole
code if win32: adoRetVal=self.cmd.Execute() else: #Iron Python ra = clr.Reference[int]() adoRetVal=[self.cmd.Execute(ra)] # return a list like win32 adoRetVal.append(ra.Value) /code Works great! Unit tests passed. Thank you! -- Vernon