06-02-2023, 10:59 PM
(06-02-2023, 09:33 PM)Dimster Wrote:Quote:and ironically Option _Explicit makes no difference in the example Dimster gave us
Not sure what you mean B .... The example with NO Option _Explicit runs fine with no error, but if you place Option _Explicit at the beginning of that code you get an error warning of an undefined variable.
...
Really, this runs fine for you???
Code: (Select All)
Const i = 1
for i = 1 to 10
print i
next
Let me know what version QB64 you have LOL ;-))
I was just commenting on Terry's preaching of Option _Explicit, yes it is good but this case of yours Dimster is not helped by Option _Explicit. You do Dim the variable in a way with a Const declaration, Option _Explicit won't call you out for using Const instead of Dim.
Again Terry's preaching is in no way wrong, and great to advocate Option _Explicit usage!
b = b + ...