LastIndexOf(ByVal value As String) As Integer
Reports the index position of the last occurrence of a specified System.String within this instance.
Return Values :
The index position of value if that string is found, or -1 if it is not. If value is System.String.Empty, the return value is the last index position in value.
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.LastIndexOf("o"))
End Sub
When you execute this code, you will get char "o" in the MessageBox
Anda baru saja membaca artikel yang berkategori VB.Net
dengan judul VB.NET String LastIndexOf(). Anda bisa bookmark halaman ini dengan URL http://vbcodesblog.blogspot.com/2012/08/vbnet-string-lastindexof.html. Terima kasih!
Ditulis oleh:
Unknown - Sunday, August 05, 2012
Belum ada komentar untuk "VB.NET String LastIndexOf()"
Post a Comment