in reply to Re^5: while loop returns same values
in thread while loop returns same values

thanks for helping, seems to have done the trick