(06-07-2023, 02:09 PM)Kernelpanic Wrote:(06-04-2023, 04:38 PM)TerryRitchie Wrote: I added OPTION _EXPLICIT yesterday to Lesson2: Introducing Variables in the tutorial:@Terry (and @bplus) a constant is just an ordinary variable that can be accidentally changed without the Option Explicit.
https://www.qb64tutorial.com/lesson2
I used Steve's Cheetos example too
From your tutorial:
KP "@Terry (and @bplus) a constant is just an ordinary variable that can be accidentally changed without the Option Explicit."
And once again I say that if you declare a variable a Const, you don't need Option _Explicit to tell you you messed up when you try to use it like a REAL variable, see here!:
Code: (Select All)
Const i = 1
for i = 1 to 10
? i
next
As you can plainly see the IDE ain't buying your blunder!
@KernelPanic that's it from me for you on this subject.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever



![[Image: Terry-Const-ohne-Option-P-07-2023.jpg]](https://i.ibb.co/fH5GQ4G/Terry-Const-ohne-Option-P-07-2023.jpg)