Re: [Ironpython-users] scope get/set variable and invoking python function

2012-04-04 Thread Slide
FYI, if you only want to READ the global variable, you don't need to do what I said below, but to write to it, you have to "declare" it as a global before writing to it inside the function. On Wed, Apr 4, 2012 at 9:40 PM, Slide wrote: > The Test1 inside the function is not the same as the Test1 o

Re: [Ironpython-users] scope get/set variable and invoking python function

2012-04-04 Thread Slide
The Test1 inside the function is not the same as the Test1 outside the function, you need to make the Test1 in the function a reference to the global Test1 for the scope. Try this def TestFunction() global Test1 Test1 = 4 On Wed, Apr 4, 2012 at 9:38 PM, Bill wrote: > I am having a proble