I want to have a button which adds “Text” to a string which says “Test“. The outcome would be “TestText“. Now I press a another button which adds “Code“. So now the string looks like this: “TestTextCode“. Now for my problem: I want it so that if I press the first Button again, the “Text” dissapears, so only “TestCode” would be left. I know you can do += do add text, but is there something similiar like -= to delete specific text from a string?
I want to have a button which adds Text to a string which says
Share
1 Answer