Windows Scripting Component weirdness
mhammond at skippinet.com.au
Mon Mar 18 23:20:47 CET 2002
Keith Farmer wrote:
> I modified \Python\Lib\site-packages\win32com\test\testPys.sct into
> WSCTest.wsc, source below. Running the testPyScriptlet.js code (also below)
> seems to reveal that I am unable to set properties on the instantiated
> object. No errors are brought up -- the code just behaves as if I never
> assigned new values to the properties.
> What am I doing wrong, assuming that the WSH is behaving properly?
A simple mistake of mine!
> def put_PyProp1(newValue):
> PyProp1 = newValue
> def put_PyProp2(newValue):
> PyProp2 = newValue
PyProp1 and PyProp2 should be declared global!
More information about the Python-list