only problem is if you don't declare you will get messed value.
here is an example..
you have an array and calling a function inside the array in same action. so what happens is that when you get out of the function, iHolds the value what ever you used in the function . so instead of having i = 1 for second for loop it hold what ever value from the function. If you declare Dim i, then i value drop off inside the function and in the action.
<font class="small">Code:</font><hr /><pre>
for i = 0 to Ubound(MyArray)
icount = browser("").page().webtable().rowcount
for i = 1 to ubound(icount)