>Hi
>
>I am getting error messages that tell me a variable does not exist from lines of code where the variable is not used.
>
>If I define a local variable of that name on the line before my code line then I have no problems. Can anyone point the direction to correction this odd behaviour
Just to add to what Cetin said, you may be having something connected to an index, and the variable (or a field with the same name) may be used in the index expression.