win32com.client - need some help

Dag Sunde dag at orion.no
Wed Jan 24 09:31:18 EST 2001


Probably with:

dic = ob.getDictionary()

?

-d-

<zippy1984 at my-deja.com> wrote in message news:94mjj8$v3g$1 at nnrp1.deja.com...
> 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