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 .
![](https://utfs.io/f/4d11065d-2573-4a86-9e11-f5008fcbd9a0-1nq2cb.png)
8 Replies
![](https://utfs.io/f/600b31ff-96c9-4434-8af7-1cc93f9f0dd7-1nq2cb.png)
![](https://utfs.io/f/772148da-e497-40f3-b11b-61f87dc8a5be-1nq2cb.png)
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