Ok so I am trying to make a textbox that you can write a sentence, and then hit a button. Then the text in the textbox will change certain words to certain other words.
Ex: You write "Hello my name is John Smith." and hit the button. Then the text is changed to "Hi my name was John Smith."
Something like that. So that I can choose words like "hello" and "is", and have them changed to "Hi" and "was".
I have a starting point, but do not know how to put in the textbox, or how to match up words to replace.
I know the replace() method exists, but how would I do this?
Thanks.
Ex: You write "Hello my name is John Smith." and hit the button. Then the text is changed to "Hi my name was John Smith."
Something like that. So that I can choose words like "hello" and "is", and have them changed to "Hi" and "was".
I have a starting point, but do not know how to put in the textbox, or how to match up words to replace.
I know the replace() method exists, but how would I do this?
Thanks.