Have you ever wondered why the language we use to program the Arduino wasn't called C=C+1? Why do you need a local variable in the loop?
I have tried that approach once and I forgot why but I couldn't get it to work and so I fell back in my old php programming habits. I changed it again and it works.
Again, thanks a lot for your great help