QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Petr on September 10, 2018, 12:28:55 pm
-
i tried to take pictures from the screen. The behavior of the program is very strange.
As output should be a few screenshots. But it not work. WHY?
PRINT a
' :beep BEEP WORK PRINT e:
BEEP 'BEEP NOT WORK, SCREENIMAGE NOT WORK, PRINT NOT WORK ' _FREEIMAGE e&
a = a + 1
I am sorry for alarm, i am IDIOT. Variable "a" is outside the loop...
-
Is t# the timer, or t##? Is this a typing goof, or deliberately two different variables?
-
Steve, i found it now.... i look to it but see it not...
-
Maybe simplify it:
-
Steve, i found it now.... i look to it but see it not...
BTW: OPTION _EXPLICIT at the top of your program would have saved you some debugging here.
-
Yes, there are 2 errors... Variable "a" muss be in IF...THEN condition and variable t is wrong, muss be double # type on all places... thank you!
-
Steve, i found it now.... i look to it but see it not...
OPTION _EXPLICIT at the top of your program would have saved you some debugging here.
OPTION _EXPLICIT is the only way to go when dealing with code greater than 100 lines. It has saved me many hours of frustration.