Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Replacing 1 letter in a list[SOLVED]
- 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
Hope this helps!
–Danlo
- frazzle96
-
Scratcher
20 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.I tried it but it does'nt save
Hope this helps!
–Danlo
- 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]
But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
- BKFighter
-
Scratcher
1000+ posts
Replacing 1 letter in a list[SOLVED]
No, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
- frazzle96
-
Scratcher
20 posts
Replacing 1 letter in a list[SOLVED]
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 letterNo, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
- BKFighter
-
Scratcher
1000+ posts
Replacing 1 letter in a list[SOLVED]
So say you had a list named “words” with items such as: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 letterNo, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
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]
What I mean is it is 3 lines and it only has 1 itemSo say you had a list named “words” with items such as: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 letterNo, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
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.
- BKFighter
-
Scratcher
1000+ posts
Replacing 1 letter in a list[SOLVED]
ThenWhat I mean is it is 3 lines and it only has 1 itemSo say you had a list named “words” with items such as: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 letterNo, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
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.
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]So now its been corrected to Blah blah blah from Blah blha blah.
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
What I mean is it is 3 lines and it only has 1 item
Then
delete (2 v) of [list v]but there are no 2 3 of the list
delete (3 v) of [list v]
Last edited by frazzle96 (Jan. 19, 2016 20:05:07)
- BKFighter
-
Scratcher
1000+ posts
Replacing 1 letter in a list[SOLVED]
Where in the code is your problem. You've made absolutely no sense to everyone whos trying to help you.but there are no 2 3 of the listThenWhat I mean is it is 3 lines and it only has 1 itemSo say you had a list named “words” with items such as: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 letterNo, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
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.delete (2 v) of [list v]
delete (3 v) of [list v]
- frazzle96
-
Scratcher
20 posts
Replacing 1 letter in a list[SOLVED]
it has nothing to do with the code i was usingWhere in the code is your problem. You've made absolutely no sense to everyone whos trying to help you.but there are no 2 3 of the listThenWhat I mean is it is 3 lines and it only has 1 itemSo say you had a list named “words” with items such as: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 letterNo, it only replaces the item that you specify.But that will replace every thing in the listreplace item (item v) of [list v] with [ginger ]Hope that helped.
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.delete (2 v) of [list v]
delete (3 v) of [list v]
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?
- frazzle96
-
Scratcher
20 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?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]
Ok i mean you said what is the problem with my code i said the code isn't the problemYou 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.
- 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]
Do this.Thank you so much!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.
sorry if i did not make the problem clear- Discussion Forums
- » Help with Scripts
-
» Replacing 1 letter in a list[SOLVED]