halley,
It might also be worth mentioning that just changing the scope of the variable may not lead to the desired results. Each iteration the array is going to get overwritten. If what was desired was the only to remember the first row (as @row1 would indicate) then additional modifications would have to be made such as
this.
Cheers - L~R