Is it bad to use the same variable name in a Module and a Method ?

I just noticed that I use the same name (LB) as a Method Parameter and a Property inside the same Module.

Beside this may confuse me, is it bad (as in Xojo internals) ?

No. The only issue you’ll run into is that it makes it harder to use the one in the module. To do that, you will need to specify the module name too:

s = Module1.LB

It was the way I used it. I was asking myself when I add a new Method and used the ListBox reference using the same name.

One may ask (that is what I’m doing) why I set a property AND a Method parameter with the same value.

Using both is certainly an error per se. A refecctoring action is probably needed asap.

Thank you Greg.