I need to replace every "a" character to "b" in a string plz help
Use Replace() function: VB Code: Private Sub Command1_Click() Dim strText$ strText = "awklfjhajhgja" strText = Replace(LCase(strText), "a", "b") 'this could be case sensitive MsgBox strText End Sub
Private Sub Command1_Click() Dim strText$ strText = "awklfjhajhgja" strText = Replace(LCase(strText), "a", "b") 'this could be case sensitive MsgBox strText End Sub
thank u very much!
No problem.
Forum Rules