Hi Troye,
you could try something like this as well:
Create a script object, eg FormScripts.
Put the following functions there:
var myArray = new Array();
function setArrayValue(nIndex, someValue) {
myArray[nIndex] = someValue;
}
function getArrayValue(nIndex) {
return myArray[nIndex];
}
Then, in an event in your form you would have code something like:
FormScripts.setArrayValue(0,"First Value");
FormScripts.setArrayValue(1,"Second Value");
FormScripts.setArrayValue(2,"Third Value");
And, in another event you can access the array values with:
var myValue = FormScripts.getArrayValue(1);
app.alert(myValue);