boolean values in COM / VB / Python
John J. Lee
phrxy at csv.warwick.ac.uk
Sun Mar 25 17:05:59 EST 2001
ie.Document.execCommand("SaveAs", false, pathname)
where ie is an Internet Explorer object, pops up a dialogue box, no matter
what value for false I try, from (1==0, 0, "0", None). According to the MS
docs at
http://msdn.microsoft.com/workshop/author/dhtml/reference/constants/saveas.asp
and
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/execCommand.asp
this isn't supposed to happen, because when the second argument to
execCommand is 'false', the command 'Does not display a user interface'.
According to Mark Hammond just last month, 0 should do fine as a way of
representing 'false':
http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=1cd0ed3943dead44&thn=Setting+boolean+COM+properties&seekd=926499672
Any clues as to what is happening?
Tips on the differences between C++ / VB and Python in general would also
be appreciated -- presumably there must be some reliable and mechanical
way of doing this?
John
More information about the Python-list
mailing list