RE: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Stefan Schukat
To: python-list@python.org Subject: Re: returning list of strings from Python COM to Visual basic 6 I can now pass and return quite a few types except object instances: my python code gets to the point where I do: def Get_Obj(self): . return an_object My VB code looks

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
Of Philippe C. Martin Sent: Thursday, July 21, 2005 1:42 AM To: python-list@python.org Subject: Re: returning list of strings from Python COM to Visual basic 6 I can now pass and return quite a few types except object instances: my python code gets to the point where I do: def

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
Sent: Thursday, July 21, 2005 1:42 AM To: python-list@python.org Subject: Re: returning list of strings from Python COM to Visual basic 6 I can now pass and return quite a few types except object instances: my python code gets to the point where I do: def Get_Obj(self

returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Hi, Is it possible ? ex: return ['1','2'] If so which type should I use in VB ? dim res as ??? Set testObj = CreateObject() res = testObj.AMethodThatReturnsAListOfStrings() Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Sorry, it was in the book: Variant ! Regards; Philippe Philippe C. Martin wrote: Hi, Is it possible ? ex: return ['1','2'] If so which type should I use in VB ? dim res as ??? Set testObj = CreateObject() res = testObj.AMethodThatReturnsAListOfStrings()

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
I can now pass and return quite a few types except object instances: my python code gets to the point where I do: def Get_Obj(self): . return an_object My VB code looks like Dim obj as Variant obj = acom.Get_Obj() I get an unexpected Python error . Objects of type 'instance'