Bug in online version
Sept 15, 2013 14:43:23 GMT -5
Post by krzysztof on Sept 15, 2013 14:43:23 GMT -5
In online version of RunBASIC there is a bug with executing "step" expression. For instance copy the code
The problem was also mentioned in topic runbasic.proboards.com/index.cgi?board=question&action=display&thread=1690
for x = 1 to 20from page www.runbasic.com/docs/for_statement.html , section of "EXIT FOR". Then add "step 1" expression to the first line of code to obtain "for x = 1 to 20 step 1". Run that modified code in online version of RunBASIC - it will crush with "Runtime Error: EXIT FOR No loop to EXIT" error. But when You will run it using downloaded free version of RB, everything will be fine. The code will work correctly.
y=x*3
if y>40 then EXIT FOR
next x
print "Final x value ";x
print "Final y value ";y
The problem was also mentioned in topic runbasic.proboards.com/index.cgi?board=question&action=display&thread=1690