VB.Net Strings.Split()


Strings.StrConv(ByVal Expression As String, Optional ByVal Delimiter As String = " ", Optional ByVal Limit As Integer = -1, Optional ByVal Compare As Microsoft.VisualBasic.CompareMethod = Binary) As String()

Summary:
Returns a zero-based, one-dimensional array containing a specified number of substrings.

Return Values :
String array. If Expression is a zero-length string (""), Split returns a single-element array containing a zero-length string. If Delimiter is a zero-length string, or if it does not appear anywhere in Expression, Split returns a single-element array containing the entire Expression string.


 Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        Dim Str As String
        Dim Arr() As String

        Str = "vb-codes-blog"
        Arr = Strings.Split(Str, "-")

        For i As Integer = 0 To Arr.Length - 1
            MsgBox(Arr(i))
        Next
    End Sub
 End Class


Anda baru saja membaca artikel yang berkategori VB.Net dengan judul VB.Net Strings.Split(). Anda bisa bookmark halaman ini dengan URL http://vbcodesblog.blogspot.com/2011/04/vbnet-stringssplit.html. Terima kasih!
Ditulis oleh: Farray Cool - Tuesday, April 06, 2010

Belum ada komentar untuk "VB.Net Strings.Split()"

Post a Comment