How to pass true or false to COM objects?

Syver Enstad syver-en+usenet at online.no
Sun Aug 18 07:30:25 EDT 2002


"Matt Gerrans" <matt_gerrans at hp.com> writes:

> I think 1 and 0 usually do the trick.   Is that not working for you?
> 
> 

If 1 and 0 will not work, you should try -1 and 0 which as far as I
can remember is the canonical values for true and false in COM, or
rather COM automation, this means that using True or False (1 or 0)
might not work. (I usually just use True and False, but don't tell anyone ;-))

-- 

Vennlig hilsen 

Syver Enstad



More information about the Python-list mailing list