String Manipulation

shers

Well-known member
Joined
Aug 12, 2007
Messages
86
Programming Experience
1-3
Hi,

I have a string like "a_b_c_d". How do I get only c out of this string?

Thanks
 
if you want to separate the letters you can just use the string Split method.

Ex:

        Dim s As String = "a_b_c_d"

        Dim letters As String() = s.Split("_"c)


note: in this array "letters(2)" would be "c"
 
Back
Top