What happened that the source code couldn't be posted as ordinary "code" block here?
This is because earlier I kept getting a 502 trying to open the screenshot.
YOU CANNOT USE TWO g VARIABLES in consecutively nested FOR/NEXT loops!
I don't know if QB64 would even permit it. But the outer loop will execute once. It's because the inner one will set that variable to 8, then when the processor goes to the outer "FOR" line, for the same exact variable it thinks, "OK it's 1 to 8 but the value is nine so I give up". :O
Actually the IDE doesn't know what to blame because the programmer failed to close a loop. The two variables for "FOR/NEXT" must have different names, and each loop should be closed properly inside the "CASE" and before "END SELECT".
Change one of the g variables of the loop control, then add another "NEXT" at the bottom, before "END SELECT" statement. Without it, the program will not compile.
This is because earlier I kept getting a 502 trying to open the screenshot.
YOU CANNOT USE TWO g VARIABLES in consecutively nested FOR/NEXT loops!
I don't know if QB64 would even permit it. But the outer loop will execute once. It's because the inner one will set that variable to 8, then when the processor goes to the outer "FOR" line, for the same exact variable it thinks, "OK it's 1 to 8 but the value is nine so I give up". :O
Actually the IDE doesn't know what to blame because the programmer failed to close a loop. The two variables for "FOR/NEXT" must have different names, and each loop should be closed properly inside the "CASE" and before "END SELECT".
Change one of the g variables of the loop control, then add another "NEXT" at the bottom, before "END SELECT" statement. Without it, the program will not compile.