win32com parameters
Steve Holden
sholden at holdenweb.com
Mon Oct 29 04:22:42 EST 2001
More information about the Python-list mailing list
Mon Oct 29 04:22:42 EST 2001
- Previous message (by thread): win32com parameters
- Next message (by thread): win32com parameters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Alberto Rodriguez [FoxPress]" <x at x.com> wrote in message news:9rgqf0$k1d$1 at diana.bcn.ttd.net... > HI: > > I'm working with win32com and run fine to me when i ask a remote method > without parameters > but not with parameters. I have this error: > > Traceback (most recent call last): > File "<interactive input>", line 1, in ? > TypeError: object of type 'int' is not callable > > the code is: > > import win32com.client > ox = win32com.client.Dispatch("proy1.miclase") > oRec = ox.primero('asfd') > > The COM objetct is writed in Visual Foxpro and run fine from > Visual FoxPro or Visual Basic > Alberto: are you sure that primero IS a method? The error message seems to imply it is an attribute, or property. Try: import win32com.client ox = win32com.client.Dispatch("proy1.miclase") print ox.primero to find out what datatype you are dealing with. regards Steve -- http://www.holdenweb.com/
- Previous message (by thread): win32com parameters
- Next message (by thread): win32com parameters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list