In your case you should see a message "SyntaxError: missing ; after for-loop initializer"
You are right in setting the presence property to visible will make a hidden object visible. But I'm not sure about your code, seems to be when you leave an instance of Row1 you though all the sibling Row1 objects and make their parent visible. You could just to Result4.presence = "visible", as you can always access the parent objects without a resolveNodes (unless you have another object with the same name it finds first). But also not sure how the exit event is being fired on a hidden object, do you have an execEvent('exit') call somewhere?
ok reading your response does make my original question sound stupid, as I said i'm new to this.
while I have been thinking about it I have created multiple pages containing the tables flowed and hide them. idea is I will then make them visible when row count > 0 or maybe 1 as there is a formula in the row so always returns 1 and the data set can't be valid if 1.
I'm not sure I follow, what do you mean by "the new instance should hold the next set of data", is this data coming from the XML or is it coming from some script based on the data in the original table?