Re: [python-win32] Calling Labview 8 via Python and COM

2006-07-04 Thread Mark Hammond
Sorry for the delay: > VI.ShowFPOnCall = True > VI.Call(ParamNames, ParamVals) > print ParamVals[1] Before the failing Call, try adding: VI._FlagAsMethod("Call") _FlagAsMethod is a helper method inside these dynamic objects and will help work-around COM objects that don't differentiate property

Re: [python-win32] Non-ascii character in source code cause 'Exceptionoccurred'

2006-07-04 Thread aurora
Thank you for the quick response :) wy >> Any presence of a non-ascii character, even if it is in the >> comment only, >> would cause this problem. I have tried various encoding, with >> or without >> BOM, and also adding the encoding specification at the top of >> the file. >> All these give the

Re: [python-win32] ODBC and Oracle

2006-07-04 Thread Dean Allen Provins
Roger Roger Upole wrote: > Dean Allen Provins wrote: > snip=== > > The parameter to odbc.SQLDataSources is a flag, rather than a position. > > import odbc > s=odbc.SQLDataSources(odbc.SQL_FETCH_FIRST) > while s: > print s > s=odbc.SQLDataSources (odbc.SQL_FETCH_NEXT) > > Roger