Page 2 of 2

Re: switch... case 1:

Posted: Wed Jul 02, 2014 3:31 am
by MarcWalters
Except "FRE" is a keyword and line 19 will cause a Syntax Error.
Oops. That was a last-second change from the original, tested code. I decided that Frepeat was a better name than Funhandled and didn't bother to test. Sorry about that.

Re: switch... case 1:

Posted: Wed Jul 02, 2014 10:42 am
by Shaun_B
MarcWalters wrote:
Except "FRE" is a keyword and line 19 will cause a Syntax Error.
Oops. That was a last-second change from the original, tested code. I decided that Frepeat was a better name than Funhandled and didn't bother to test. Sorry about that.
You're not the first to make this mistake, I've made some similar errors at least twice here. Even if the syntax was wrong, I still got the gist of what your example.

Regards,

Shaun.

Re: switch... case 1:

Posted: Wed Jul 02, 2014 2:51 pm
by merman
Variable names longer than two letters use up extra memory - two is the maximum BASIC "sees". For speed and optimisation, stick to two letters.

Re: switch... case 1:

Posted: Wed Jul 02, 2014 3:17 pm
by satpro
merman wrote:Variable names longer than two letters use up extra memory - two is the maximum BASIC "sees". For speed and optimisation, stick to two letters.
That is a very good point.