06-02-2023, 02:21 PM
(06-02-2023, 11:19 AM)Dimster Wrote: When I get a "Duplicate definition" error it's seems to always be related to my misuse of the CONST statement. Somewhere in my program I tried to change the variables value when it supposed to have been fixed.
Option _Explicit is not called for in this case, everything already has worked for your protection.
You declared a variable name to be constant and the IDE is telling you of your blunder of trying to use a Constant like a true variable.
Option _Explicit is just good programming practice, specially for large projects.
b = b + ...