VB.NET String Insert()

Insert(ByVal startIndex As Integer, ByVal value As String) As String
Inserts a specified instance of System.String at a specified index position in this instance.

Return Values :
A new System.String equivalent to this instance but with value inserted at position startIndex.

Ex : 

"vbblog".Insert(2, "codes") returns vbcodesblog


 Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        MsgBox("vbblog".Insert(2, "codes"))
    End Sub
 End Class


When you execute this code, you will get vbcodesblog in the MessageBox
Anda baru saja membaca artikel yang berkategori VB.Net dengan judul VB.NET String Insert(). Anda bisa bookmark halaman ini dengan URL http://vbcodesblog.blogspot.com/2010/04/vbnet-strings-insert.html. Terima kasih!
Ditulis oleh: Farray Cool - Saturday, April 10, 2010

Belum ada komentar untuk "VB.NET String Insert()"

Post a Comment