How does python handle VBS "Nothing" keyword

cfriedalek at gmail.com cfriedalek at gmail.com
Fri Dec 15 00:37:03 EST 2006


I'm writing a python script using win32com to call a 3rd party program
via its VBS based API.

In VBS a query to get some plot data goes like this:

Plot.QueryBegin datacode, Nothing

What is this in python?

Plot.QueryBegin(datacode, None) does not work. I get a type mismatch
error as follows:

com_error: (-2147352571, 'Type mismatch.', None, 2)

I've tried "", False, 0 as alternative to None but these don't work
either. So what is mapped to "Nothing"?

tia




More information about the Python-list mailing list