If you declare at local variable and a global variable exists with the same name, the local variable well override the global variable. This can lead to hard-to-debug errors.
Wish 1: Local variables should not override global variables. This is like it is in virtually all other programming languages.
Wish 2: Alternatively, the linter should warn you about the problem so you can choose another name.
See https://www.b4x.com/android/forum/threads/local-variable-overrides-global.114668/#post-716224 for background information.
Wish 1: Local variables should not override global variables. This is like it is in virtually all other programming languages.
Wish 2: Alternatively, the linter should warn you about the problem so you can choose another name.
See https://www.b4x.com/android/forum/threads/local-variable-overrides-global.114668/#post-716224 for background information.