I have a script 1 where I have following lines of code
Global gTest
put “Hello Global” into gTest
I have script 2 where I am referring the global variable like following
put “testing”
put global gTest
put “done”
I get an empty string in the results below
testing
done
How ever if I have set the global variable in a handler in Script 1
to setVariable
Global gTest
put “Hello Global” into gTest
end setVariable
If I have code in Script 2 and execute, it does print the value
Script1.setVariable
put global gTest
Documentation about this feature is not very clear to me and do not understand why I have to put in a handler to work.
Thanks
Jag