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

#1 2009-10-06 00:45:38

ivanoriola
Scratcher
Registered: 2009-09-30
Posts: 3

Rename Variables

Rename variables

Offline

 

#2 2009-10-06 01:06:17

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Rename Variables

The title says it all.  big_smile

I've never been really bothered by this, but someday I probably will... it must be irritating to make a project with LOTS and LOTS of the same variable block. And then if you realize it's gotten confusing and doesn't make sense: hello, editing.
My Dad was experimenting with Scratch, and he mentioned that it was irritating. I suppose C++ allows it or something.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2009-10-06 19:05:48

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Rename Variables

I have been bothered by this. Let's say I need a variable for something, and it won't be displayed on screen. So you name it, let's say, 1. But then, it turns out you need it as a slider, and the name is 1, and it doesn't make sense. I would love to rename variables!

Great sugesstion!  big_smile


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#4 2009-10-06 23:12:31

-Vizard-
Scratcher
Registered: 2009-10-06
Posts: 76

Re: Rename Variables

You can't rename variables? I was almost positive you could, but if not, then I completely agree, that would be a very much needed feature!

~Spine


http://img40.imageshack.us/img40/4921/vizardp.png

Offline

 

#5 2009-11-16 07:42:00

Galdrapiu
Scratcher
Registered: 2009-11-16
Posts: 2

Re: Rename Variables

The renaming of variables is an old subject in this forum (especially for the translation of program code to an other language). There are some tweaks around...
- Export to XML ... rename the variables... Import it back to Scratch
  (http://scratch.mit.edu/projects/Jens/93504 => not working with Scratch 1.4)
- Use an other (inoffical) trunk like chirp to exchange variables in a block.
  (http://chirp.scratchr.org/) => not very efficient 
- Use Chirp to export your program to xml and reimport
  => problem: local variables get global variables

Who has some experience, and could tell us (www.iLearnIT.ch), what's the best working tweak to rename variables at the moment?

Offline

 

#6 2010-11-30 09:17:18

elimar
Scratcher
Registered: 2010-02-05
Posts: 2

Re: Rename Variables

Very good idea,
-  to improve the quality of variable names in our projects and
-  to improve the readability of the code

Can somebody post it into the "Scratch Suggestions" page?

Offline

 

Board footer