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

#1 2010-07-28 16:46:01

VilceGT
Scratcher
Registered: 2010-02-13
Posts: 34

[Suggestion] "place used by [...] in [list name]"

Hi all.
I think all know the function for the lists "item [...] of [list name]". This function take a value in a list by the adress (the number). My suggestion is: add a new function "place used by [...] in [list name]" (bad english maybe an other name) who take the adress by the value. It would be usefull for the codes to import from the lists.
Give your opinions on this suggestion.
Thanks for read that.

PS: if you don't get the advantages of this function, maybe you just start on Scratch, maybe my english is too bad.


| Turn of [...] to [...] | Time to drive | Waiting Scratch 2.0 to finish my projects |
| Sorry for my bad english, I am french |

Offline

 

#2 2010-07-28 16:48:37

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: [Suggestion] "place used by [...] in [list name]"

That's a really great idea! I can't tell you how many times I've wanted something like this.

You can do something similar with the features Scratch provides (looping through each item of the list), but that takes a long time to both make and execute. I'd love an idea like this!

The only issue I can see is if there are is more than one instance of that value in the list. But that could easily be fixed.

Offline

 

#3 2010-07-28 17:01:39

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: [Suggestion] "place used by [...] in [list name]"

This would be SO useful. I made a mockup:

http://img801.imageshack.us/img801/5609/block.gif


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2010-07-28 17:04:42

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: [Suggestion] "place used by [...] in [list name]"

Great idea! Ithink it's "index containing item [] of [a\/]"
wink


Hai.

Offline

 

#5 2010-07-28 17:08:11

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: [Suggestion] "place used by [...] in [list name]"

fg123 wrote:

Great idea! Ithink it's "index containing item [] of [a\/]"
wink

no, I think 'item' is better, because it reports the item of the list that the string is in.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#6 2010-07-28 17:12:09

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: [Suggestion] "place used by [...] in [list name]"

But item refers to the value in the other blocks.


Hai.

Offline

 

#7 2010-07-28 17:24:05

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: [Suggestion] "place used by [...] in [list name]"

I'm with fg123 on this one - item generally returns the value, and the inconsistencies might be confusing. "Index" is what I'd say.

Offline

 

Board footer