Tipe data yang dihasilkan adalah string.
Formula:
Insert(startIndex As Integer, value As String)
startIndex = index posisi string akan di insert.
value = nilai string yang akan di insert
Contoh:
Design UI
Code
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim strOriginal As String = TextBox1.Text
Dim strInsert As String = "INSERT "
MsgBox(strOriginal.Insert(6, strInsert))
End Sub
Runtime
Click here if you like this article.
0 Comments