Possible Duplicate:
How do i split a String into multiple values?
I have a string 0001-102525 . I want to split it into 0001 and 102525.How can i do it?
Regards,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Then access either like so:
splitString[0]andsplitString[1]Don’t forget to check the count/length if you are splitting user inputted strings as they may not have entered the ‘-‘ which would cause an
OutOfRangeException.