This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-12-11 17:07:07

bos
Scratcher
Registered: 2007-11-30
Posts: 1

Upper and lower case variables on the web

I had real problems getting my project http://scratch.mit.edu/projects/bos/65614 to work on the web even if it worked well on my mac. Finally I realised that I used two variables with the same name except for case. Changing the names resolved the issue. This may be a known cause of trouble, or not, but I post it so that someone searching for 'web' or 'online' in the troubleshooting section can find it!

Offline

 

#2 2007-12-12 14:32:23

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: Upper and lower case variables on the web

Good point! Variable names are case sensitive in Scratch but are NOT case sensitive in the Scratch player. (They should probably not be case sensitive even in Scratch.)

It's best to make sure your variable names are different in spelling, not just in case.

  -- John

Last edited by johnm (2007-12-12 14:33:00)

Offline

 

#3 2007-12-16 05:10:24

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Upper and lower case variables on the web

johnm wrote:

Good point! Variable names are case sensitive in Scratch but are NOT case sensitive in the Scratch player. (They should probably not be case sensitive even in Scratch.)

It's best to make sure your variable names are different in spelling, not just in case.

  -- John

That's a really good thing to know!  And I agree that they should probably not be case sensitive anywhere in the Scratch environment.  Two easy to make a mistake.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer