This sample code will show you on how to Replace a string on a Text-box Control using the
Replace Function and the code will done like this:
Add 1 Text-box Control and 1 Command Button at the Text-box,Text property Put a Letter
A and put this code under the Command Button Click Event
Text1.Text = Replace(Text1.Text, "A", "B")
'this will Replace the letter A on the Text-box Control with Letter B, Hope you get the Logic!!!
The Hardest Thing to Do is to Do Nothing
Happy Coding (^_^)
Replace Function and the code will done like this:
Add 1 Text-box Control and 1 Command Button at the Text-box,Text property Put a Letter
A and put this code under the Command Button Click Event
Text1.Text = Replace(Text1.Text, "A", "B")
'this will Replace the letter A on the Text-box Control with Letter B, Hope you get the Logic!!!
The Hardest Thing to Do is to Do Nothing
Happy Coding (^_^)
Leave a comment