>This is the best. But make it LOCAL so in case you have defined variable beforehand you didn't spoil its value, also in all cases check if you didn't use the same variable in the same routine.
I don't think that I used the variable elsewhere, but I will look and see if perhaps I did.