Python COM: How to access constants in type lib

Charles Medcoff cmedcoff at my-deja.com
Thu Jul 6 20:19:38 EDT 2000


When using Python as a COM client, how can I use/access constants
defined in a type lib from Python.

Example:


import win32com.client

engine = win32com.client.Dispatch("DAO.DBEngine.35")
db = engine.OpenDatabase(r"\test.mdb")

query = db.CreateQueryDef("base", "SELECT, bla, bla...")
query.Type = dbQMakeTable # this doesn't work

Thanks,
Chuck






--
Charles Medcoff
Senior Systems Engineer
Pyramid Solutions
1850 Research Drive, Suite 300
Troy, MI 48083


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list