3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by shers
0
dim str as string = "a_b_c_d"
dim justc as string
justc = str.split("_")(2)

i hope this ll help

0

Also, see if this helps.

Dim sTemp As String = "a_b_c_d" '// your String.
        Dim arTemp() As String = sTemp.Split("_"c) '// .Split String into Arrays.
        For Each itm As String In arTemp '// loop thru Arrays.
            '// find your Array and get value.
            If itm.StartsWith("c") Then MsgBox(itm)
        Next

Edited by codeorder: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.