win32com.client - need some help

zippy1984 at my-deja.com zippy1984 at my-deja.com
Wed Jan 24 07:59:22 EST 2001


I am trying to port some VB code to Python, but I have a problem
with code that passes Objects by reference....

VB:
   Dim ob as someObject
   Dim dic as IDictionary
   Dim i as Long

   ob = CreateObject("some.object.1")
   ob.getDictionary dic  ' set "dic" to point to the "ob" dictionary
   i = dic.getValue("xyzzy")

Python:
   import win32com.client
   ob = win32com.client.Dispatch("some.object.1")  # ok
   # I can now use "ob" to call methods that returns infomation
   # by the return value.
   #... then how do I get the dictionary?


regards, tom



Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list