how to replace a specified characters in a string to another ones?
I need to replace every "a" character to "b" in a string
plz help
Re: how to replace a specified characters in a string to another ones?
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
Re: how to replace a specified characters in a string to another ones?
Re: how to replace a specified characters in a string to another ones?