the only thing I can say is...... don't use Goto [Big Grin]

For controlled exit from a FOR loop walking an array, use the array size as the upper bound of the loop. If a special event is reached in the array, set the for loop variable to equal the upper bound of the loop.

code:
$array = 1,2,5,7,"*",10

;this will walk the array stopping when it reaches the *
for $i = 0 to ubound($array)
;If the array meets this rule exit the for loop
if $array[$i] = "*"
$i = ubound($array)
else
? $array[$i]
endif
next

Bryce