Homework Help . how to pick out in a string variable that looks like this 1,2 and only pick out the2
Greetings everyone i've been having a tought time with some of my homework . I have to pick out in a grid the coordinates that look like this 1,2 for example and then pick out the x and y coordinates but i don't know how to pick out just the two for example . Thanks for your help .
8 Replies
so, how to pick out the second value from a comma-separated list?
start here
Divide strings using String.Split (C# Guide)
The Split method returns an array of strings split from a set of delimiters. It's an easy way to extract substrings from a string.
Thanks a lot it worked ^^
o7
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity./close