The index variable in a FOR loop must be an integer type. Specify a different variable, or redefine the one named.