Page 1 of 1

Replace text

Posted: Tue Jul 24, 2012 1:11 pm
by CodenBoy
Hello, I just need little help with a code to replace a letter to another one in Textbox.

I want to replace all the letters to the new one like this "Hey, bye" after converting "e" to "a" I want it "Hay, Bya"
lol,

Thanks

Re: Replace text

Posted: Tue Jul 24, 2012 1:33 pm
by Dummy1912
maybe with
Code: Select all
if textbox1.text.contains("e") then
textboxt1.Text = textbox1.Text.Replace("e", "a")
end if
something like this i guess :)


this can be even a richtextbox of a multi textbox
its convert every e to a a

Re: Replace text

Posted: Tue Jul 24, 2012 7:02 pm
by CodenBoy
#Dummy1912

Thanks bro, <3 you remember me your bro, CleverBoy :p

I will test it, i tried this without the If statement maybe this gonna work, i will check this later, thanks!

:)