Grumpy_Mike:
Then your approach is to cripple your code because you can’t be bothered tracking down the real cause of the error?A error message is only related to syntax, not function. Do not compromise function just because you don’t understand the syntax.
In this case if you remove that iteration loop you do not need the variable reader at all, so it shouldn’t be in the code.
Not because i can't be bothered mike, i have tried, but it only seemed to be happy with that in there rather then not. I'm new to coding so what might be the obvious to yourself may not be for me. But thank you for your reply.