The Perl is just passing an interpreted string.
Couldn't you just do the same in Python?
N="3"
ml.Execute("M="+N)
-or-
ml.Execute("M=magic("+N+")")
depending on whether magic() is needed.
or alternately if you must have integer values in your python var.
N=3
cmd="M=%d" % N
ml.Execute(cmd)
o
only input the integer 3 explicitly inside "Execute()", but not
from Python.
You are the world's authority in COM, your help will be very much appreciated.
Sincerely,
Kin Cheung
- Original Message -
From: [email protected]
To: [email protected]
Cc: kycbus
On 23/05/2011 7:59 PM, [email protected] wrote:
Dear sir,
I am looking for a sample python script to declare VARIANTs
similar to one shown below which is for Perl. Your help will be very
much appreciated.
win32com doesn't have a way to explicitly declare variants - you just
pass nor