Your problem is the return statement. Return causes a return from the entire expression, not just the innermost program bar. So you never get past the first value of i, as you execute a return and terminate the calculation of the entire region.
__________________
� � � � Tom Gutman