VB.NET String Remove()


Remove(ByVal startIndex As Integer, ByVal count As Integer) As String

Deletes a specified number of characters from this instance beginning at a specified position.

Return Values :

A new System.String that is equivalent to this instance less count number of characters.

Ex :


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


     Dim Str As String = "vbcodesblog"

     MsgBox(Str.Remove(2, 5))

End Sub


When you execute this code, you will get vbblog in the MessageBox
Anda baru saja membaca artikel yang berkategori VB.Net dengan judul VB.NET String Remove(). Anda bisa bookmark halaman ini dengan URL http://vbcodesblog.blogspot.com/2012/08/vbnet-string-remove.html. Terima kasih!
Ditulis oleh: Unknown - Sunday, August 05, 2012

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

Post a Comment