Discuss Scratch

frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

I made a search engine on scratch called Search engine it involved putting all the content in 1 item of 1 list and I made a spelling mistake by typing gingwer instead of ginger please help by telling me how to delete that 1 letter?

Last edited by frazzle96 (Jan. 19, 2016 23:50:12)

16luongl1
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
DanloTest
Scratcher
30 posts

Replacing 1 letter in a list[SOLVED]

If (while editing the project) you click on the orange area where it displays the list, you should be able to highlight and delete the letter “d” like in an ordinary text editor.

Hope this helps!

–Danlo
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

DanloTest wrote:

If (while editing the project) you click on the orange area where it displays the list, you should be able to highlight and delete the letter “d” like in an ordinary text editor.

Hope this helps!

–Danlo
I tried it but it does'nt save
BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

Just use replace item. Of if you delete the list and ad it when the green flag is clicked, change that text.
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

BKFighter wrote:

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter
BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter
So say you had a list named “words” with items such as:
1) Hello
2) Blah blha blah
3) How are you

And you wanted the second word in the second item to say blah instead of blha, you would do this:
replace item (2 v) of [words  v] with [Blah blah blah]
So now its been corrected to Blah blah blah from Blah blha blah.
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter
So say you had a list named “words” with items such as:
1) Hello
2) Blah blha blah
3) How are you

And you wanted the second word in the second item to say blah instead of blha, you would do this:
replace item (2 v) of [words  v] with [Blah blah blah]
So now its been corrected to Blah blah blah from Blah blha blah.
What I mean is it is 3 lines and it only has 1 item
BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter
So say you had a list named “words” with items such as:
1) Hello
2) Blah blha blah
3) How are you

And you wanted the second word in the second item to say blah instead of blha, you would do this:
replace item (2 v) of [words  v] with [Blah blah blah]
So now its been corrected to Blah blah blah from Blah blha blah.
What I mean is it is 3 lines and it only has 1 item
Then
delete (2 v) of [list  v]
delete (3 v) of [list v]
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

replace item ( v) of [  v] with [ ][quote=BKFighter][quote=frazzle96][quote=BKFighter][quote=frazzle96][quote=BKFighter][quote=frazzle96][quote=16luongl1][scratchblocks]
replace item (item v) of [list v] with [ginger ]
[/scratchblocks]
Hope that helped.[/quote]
But that will replace every thing in the list[/quote]
No, it only replaces the item that you specify.[/quote]
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter[/quote]
So say you had a list named "words" with items such as:
1) Hello
2) Blah blha blah
3) How are you

And you wanted the second word in the second item to say blah instead of blha, you would do this:

replace item (2 v) of [words v] with [Blah blah blah] will replace all of item 1 in the list
So now its been corrected to Blah blah blah from Blah blha blah.
What I mean is it is 3 lines and it only has 1 item
Then
delete (2 v) of [list  v]
delete (3 v) of [list v]
but there are no 2 3 of the list

Last edited by frazzle96 (Jan. 19, 2016 20:05:07)

BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter
So say you had a list named “words” with items such as:
1) Hello
2) Blah blha blah
3) How are you

And you wanted the second word in the second item to say blah instead of blha, you would do this:
replace item (2 v) of [words  v] with [Blah blah blah]
So now its been corrected to Blah blah blah from Blah blha blah.
What I mean is it is 3 lines and it only has 1 item
Then
delete (2 v) of [list  v]
delete (3 v) of [list v]
but there are no 2 3 of the list
Where in the code is your problem. You've made absolutely no sense to everyone whos trying to help you.
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

BKFighter wrote:

frazzle96 wrote:

16luongl1 wrote:

replace item (item v) of [list  v] with [ginger ]
Hope that helped.
But that will replace every thing in the list
No, it only replaces the item that you specify.
Yes I know but The way I am using the code I have Items in a llist 3 lines long and I just want to edit one letter
So say you had a list named “words” with items such as:
1) Hello
2) Blah blha blah
3) How are you

And you wanted the second word in the second item to say blah instead of blha, you would do this:
replace item (2 v) of [words  v] with [Blah blah blah]
So now its been corrected to Blah blah blah from Blah blha blah.
What I mean is it is 3 lines and it only has 1 item
Then
delete (2 v) of [list  v]
delete (3 v) of [list v]
but there are no 2 3 of the list
Where in the code is your problem. You've made absolutely no sense to everyone whos trying to help you.
it has nothing to do with the code i was using
ask [] and wait
then add answer to item 1 of list because i was tying fast i accidently did a spelling mistake

Last edited by frazzle96 (Jan. 19, 2016 20:07:41)

BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

You say it doesn't involve code, but immediately list code! I'm not going to waste more time on a wild goose chase. You need to provide complete and accurate information or no one can (or will) help you. If it doesn't have to do with code, it shouldn't be in help with scripts as thats for, well, code…. right?
asivi
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

I've understanded what you need.
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

BKFighter wrote:

You say it doesn't involve code, but immediately list code! I'm not going to waste more time on a wild goose chase. You need to provide complete and accurate information or no one can (or will) help you. If it doesn't have to do with code, it shouldn't be in help with scripts as thats for, well, code…. right?
https://scratch.mit.edu/projects/94573634/#player I can not understand what you can not understand any way here is the link for the project, click search then type coco u will see a few spelling mistakes then click see inside then try to tell me something useful.

Last edited by frazzle96 (Jan. 19, 2016 20:50:30)

frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

frazzle96 wrote:

BKFighter wrote:

You say it doesn't involve code, but immediately list code! I'm not going to waste more time on a wild goose chase. You need to provide complete and accurate information or no one can (or will) help you. If it doesn't have to do with code, it shouldn't be in help with scripts as thats for, well, code…. right?
https://scratch.mit.edu/projects/94573634/#player I can not understand what you can not understand any way here is the link for the project, click search then type coco u will see a few spelling mistakes then click see inside then try to tell me something useful.
Ok i mean you said what is the problem with my code i said the code isn't the problem
BKFighter
Scratcher
1000+ posts

Replacing 1 letter in a list[SOLVED]

Do this.
replace item (1 v) of [_____  v] with [Coco is a Short-Haired mostly grey and white with a touch of ginger cat. She is called Lemur puss because her tail has dark grey and white. She ansolutely adores Frazzle96 And always sits on his bed smoocheing him (Which is sometimes really annoying!) I can not sleep in because she gets worried and wakes my up by Frazzle96]//Ginger is corrected here.
Then double click the block (it shouldn't be attached to any code). Then save the project. Make sure its saved though. This is similiar to what you were advised to do earlier, but this is more complete and exact instructions. From now on I advise being more precise as that last statement as its easier to understand.
frazzle96
Scratcher
20 posts

Replacing 1 letter in a list[SOLVED]

BKFighter wrote:

Do this.
replace item (1 v) of [_____  v] with [Coco is a Short-Haired mostly grey and white with a touch of ginger cat. She is called Lemur puss because her tail has dark grey and white. She ansolutely adores Frazzle96 And always sits on his bed smoocheing him (Which is sometimes really annoying!) I can not sleep in because she gets worried and wakes my up by Frazzle96]//Ginger is corrected here.
Then double click the block (it shouldn't be attached to any code). Then save the project. Make sure its saved though. This is similiar to what you were advised to do earlier, but this is more complete and exact instructions. From now on I advise being more precise as that last statement as its easier to understand.
Thank you so much! sorry if i did not make the problem clear

Powered by DjangoBB