First one with a correct answer will have the FUNCTION named after them......
What I want to do is create 'new' variables based on the index of the parent.
So, if I have 4 subforms called 'Panel' (Panel[0], Panel[1], Panel[2], Panel[3]), I want do declare a local variable in my function to count from 0 to n for each Panel.
We won't know how many Panels we will have until runtime. So, I need the variables to keep track of the count (it's tracking the number of errors) - for each Panel.
Something like this:
if(obj.rawValue==null || obj.rawValue=="")
{
var errorCount[obj.parent.parent.index]=errorCount[obj.parent.parent.index]+1;
app.alert(errorCount[obj.parent.parent.index]);
}
I am assuming it has something to do with Arrays. But I suck at Arrays.
Thanks for the help.