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

#1 2012-03-23 19:52:46

johnrulz
Scratcher
Registered: 2011-04-15
Posts: 44

New list block: Delete [thing] from list

Makes list management a lot easier

'Delete position (number) from list'

Last edited by johnrulz (2012-03-24 13:49:34)

Offline

 

#2 2012-03-23 19:56:22

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: New list block: Delete [thing] from list

Could you explain this in more detail?

What if there was no item with a value of 'thing'?
Would it cause an error?

Last edited by trinary (2012-03-23 19:57:07)


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-03-23 19:56:39

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: New list block: Delete [thing] from list

It would be better just to have;

(position of [thing] in [list v])
Then you could just do;
delete (position of [thing] in [list v]) of [list v]
Grr it always comes out as a variable. You know what I mean though (hopefully  tongue )

Last edited by RedRocker227 (2012-03-23 19:57:27)


Why

Offline

 

#4 2012-03-24 08:17:21

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: New list block: Delete [thing] from list

RedRocker227 wrote:

It would be better just to have;

(position of [thing] in [list v])
Then you could just do;
delete (position of [thing] in [list v]) of [list v]
Grr it always comes out as a variable. You know what I mean though (hopefully  tongue )

Support the above ^^


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#5 2012-03-24 13:48:02

johnrulz
Scratcher
Registered: 2011-04-15
Posts: 44

Re: New list block: Delete [thing] from list

Sorry for not being clearer earlier, that was what I was thinking  smile

I suppose a 'delete (number) of (thing) in list (v)' would be somwhat useful too...

Although it would be slightly harder for the MIT team to make

Offline

 

#6 2012-03-24 14:09:52

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: New list block: Delete [thing] from list

RedRocker227 wrote:

It would be better just to have;

<position of [thing] in [list v]>
Then you could just do;
delete <position of [thing] in [list v]> of [list v]
Grr it always comes out as a variable. You know what I mean though(hopefully  tongue ).

Not for long! Super PullJosh is here to help...  tongue

Last edited by PullJosh (2012-03-24 14:10:26)


http://www.blocks.scratchr.org/API.php?action=text&amp;string=I'm_on_vacation!&amp;xpos=155&amp;ypos=90&amp;font_size=30&amp;bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#7 2012-03-24 14:31:35

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: New list block: Delete [thing] from list

PullJosh wrote:

RedRocker227 wrote:

It would be better just to have;

<position of [thing] in [list v]>
Then you could just do;
delete <position of [thing] in [list v]> of [list v]
Grr it always comes out as a variable. You know what I mean though(hopefully  tongue ).

Not for long! Super PullJosh is here to help...  tongue

^ I support RedRocker227's idea.


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#8 2012-03-24 14:55:50

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: New list block: Delete [thing] from list

PullJosh wrote:

RedRocker227 wrote:

It would be better just to have;

<position of [thing] in [list v]>
Then you could just do;
delete <position of [thing] in [list v]> of [list v]
Grr it always comes out as a variable. You know what I mean though(hopefully  tongue ).

Not for long! Super PullJosh is here to help...  tongue

Ah, clever :3


Why

Offline

 

#9 2012-03-24 15:20:21

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: New list block: Delete [thing] from list

ProgramCAT wrote:

PullJosh wrote:

RedRocker227 wrote:

It would be better just to have;

<position of [thing] in [list v]>
Then you could just do;
delete <position of [thing] in [list v]> of [list v]
Grr it always comes out as a variable. You know what I mean though(hopefully  tongue ).

Not for long! Super PullJosh is here to help...  tongue

^ I support RedRocker227's idea.

Me too. :3

Offline

 

Board footer