How does python handle VBS "Nothing" keyword

C

cfriedalek

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top