switch... case 1:

SYS 64738
MarcWalters
Member
Member
Posts: 55
Joined: Wed Jun 11, 2014 2:33 pm
Location: Lake Macquarie, NSW, Australia
Contact:

Re: switch... case 1:

Post 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.


User avatar
Shaun_B
Member
Member
Posts: 179
Joined: Tue May 06, 2014 12:12 pm
Location: UK
Contact:

Re: switch... case 1:

Post 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.
BASIC Programming - making the mistakes so that you don't have to.
Circles and Squares.
Nothing I post here will stand up in a court of law.
merman
Member
Member
Posts: 183
Joined: Mon Apr 14, 2014 2:50 pm
Location: Skegness
Contact:

Re: switch... case 1:

Post 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.
satpro

Re: switch... case 1:

Post 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.
Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 8 guests