JohnC Expert Licensed User Longtime User Jun 30, 2021 #1 I had this line in the Main Activity's Process_Globals and in a Service's Process_Globals. It caused a weird/random scoping error that took a while to figure out that I had accidently duplicated this line: B4X: Copy Sub Process_Globals Dim exo As SimpleExoPlayerView End Sub I'm thinking it would be helpful if the compiler could report a warning (or display a red wavy underline for each instance during edit mode) if it sees duplicate declared global variables. NOTE: I am using B4A v9.01 Last edited: Jul 1, 2021
I had this line in the Main Activity's Process_Globals and in a Service's Process_Globals. It caused a weird/random scoping error that took a while to figure out that I had accidently duplicated this line: B4X: Copy Sub Process_Globals Dim exo As SimpleExoPlayerView End Sub I'm thinking it would be helpful if the compiler could report a warning (or display a red wavy underline for each instance during edit mode) if it sees duplicate declared global variables. NOTE: I am using B4A v9.01
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2021 #2 JohnC said: NOTE: I am using B4A v9.01 Click to expand... Huge mistake. Please don't make these posts in the bug forum. These are not bugs. There is no problem with declaring variables with the same name in different modules.
JohnC said: NOTE: I am using B4A v9.01 Click to expand... Huge mistake. Please don't make these posts in the bug forum. These are not bugs. There is no problem with declaring variables with the same name in different modules.