11-19-2015, 05:59 AM
Hello,
I am using version 1.3.0-s1121, though I've also tried 1.4.0s1967, and have the following simple program:
The compiler gives these errors:
test.bas:6: Syntax Error. Unexpected token 'NEXT' <NEXT>
test.bas:7: Undeclared label "10"
I am a C/C++ programmer, so I might be missing something but looks like if I have INKEY$ in a FOR loop, it doesn't compile. I can remove the GOTO 10 and do a 10: to fix the second error, though that's not very clean syntax with the line number having to be converted to a label.
But, I haven't yet found a workaround for the INKEY$ problem in a FOR loop.
Thanks so much for the help.
I am using version 1.3.0-s1121, though I've also tried 1.4.0s1967, and have the following simple program:
Code:
10 FOR l = 1 to 30
IF INKEY$ <> "" THEN GOTO 100
NEXT l
GOTO 10
100 PRINT "*"
test.bas:6: Syntax Error. Unexpected token 'NEXT' <NEXT>
test.bas:7: Undeclared label "10"
I am a C/C++ programmer, so I might be missing something but looks like if I have INKEY$ in a FOR loop, it doesn't compile. I can remove the GOTO 10 and do a 10: to fix the second error, though that's not very clean syntax with the line number having to be converted to a label.
But, I haven't yet found a workaround for the INKEY$ problem in a FOR loop.
Thanks so much for the help.