+92 332 4229 857 99ProjectIdeas@Gmail.com

String.Insert function (Vb.net)


String Insert function
String.Insert() function insert a specified string into the main string. This function takes two parameters; first is the index where to insert the specified string, and the second parameter is the string to insert.
System.string is the library for this compare function.
 
Example
Dim str As String = "my name is Saad Saulat"
Dim tempStr As String = str.Insert(16, "Bin ")
MsgBox(tempStr)
Result
The message box will display "my name is Saad Bin Saulat".


Related articles

0 comments: