Have you switched on local declaration in Project → Settings?

Or just declare the variable in the .var file, which might be the more common solution.
Have you switched on local declaration in Project → Settings?

Or just declare the variable in the .var file, which might be the more common solution.