String Replace function
String.Replace() function replaces all the old characters with the new character in a string.
Replace(old character,new character)
System.String is the library for this function.
Example
Dim str1 As String = "hella warld!!!"
Dim str2 As String = String.Empty
str2 = str1.Replace("a", "o")
MsgBox(str2)
Result
The message box will displays "Hello World!!!"
Related articles
0 comments:
Post a Comment