Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling errors
#3
(07-14-2020, 10:19 PM)boriel Wrote: GOTO <experssion> is not supported.
Line numbers are just labels.
You can, however, use ON ... GOTO. In the example above:

Code:
10 ON INT(RND * 4) GOTO 1380, 1386, 1392, 1398

ON <expression> GOTO a, b, c, d... jumps into a, b, c, d... if expression is one of 0, 1, 2, 3... respectively

Brilliant, thank you so much for that.

I've sorted out 10 or so errors, just have a couple to go and hopefully the program will compile.
Reply


Messages In This Thread
Compiling errors - by Jodo - 07-13-2020, 02:14 PM
RE: Compiling errors - by boriel - 07-14-2020, 10:19 PM
RE: Compiling errors - by Jodo - 07-14-2020, 10:40 PM
RE: Compiling errors - by boriel - 07-15-2020, 07:26 AM
RE: Compiling errors - by Jodo - 07-18-2020, 01:25 PM
RE: Compiling errors - by boriel - 07-18-2020, 04:47 PM
RE: Compiling errors - by Jodo - 07-18-2020, 06:51 PM
RE: Compiling errors - by boriel - 07-19-2020, 11:38 AM
RE: Compiling errors - by Jodo - 07-19-2020, 01:50 PM
RE: Compiling errors - by boriel - 07-19-2020, 03:37 PM
RE: Compiling errors - by Jodo - 07-19-2020, 06:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)