I'm trying to figure out how to use global variable array. I found post
myArray is not behaving as GLOBAL scope?
I did exactly like explained in that post. But when I click button I got such error message result:
How fix it?
Ah, I found the answer in your second thread.Well, to create an global array, create variable in the form properties.
Then add a script in the initialize event of the forms root node (i.e. form1).
aGlobal = eval(Global.value);
// load the fist array item into a text fieldthis.rawValue = aGlobal; // returns John
// load the fist array item into a text field
this.rawValue = aGlobal; // returns John
Thank you radzmar ...
I always wanted to do that, I mean using Form Variables to store global variables with different types such as objects and arrays. Using eval() is the answer.
Also, mind you that you can use uneval() to store the variable back into the form variable. Use this method if the variable is not simple type (number or text).
See this post for more details:
What do you need the global variable for?