|
-
August 14th, 2011, 08:37 AM
#1
[Resolved]String Manipulation
Hi,
I have a string like "a_b_c_d". How do I get only c out of this string?
Thanks
Last edited by shers; August 14th, 2011 at 04:58 PM.
-
August 14th, 2011, 09:14 AM
#2
Re: String Manipulation
you could do something like this:
Code:
Dim s As String = "a_b_c_d"
Dim result = s.Split("_")(2)
Console.WriteLine(result)
-
August 14th, 2011, 04:57 PM
#3
Re: String Manipulation
Thanks! This is what I finally did.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|