my bad. I did not see that scanno=ii was in a function call. I though it is was an assignment.... sorry