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
Potato_Boy🦉
Potato_Boy🦉15mo ago
Potato_Boy🦉
Potato_Boy🦉15mo ago
JakenVeina
JakenVeina15mo ago
so, how to pick out the second value from a comma-separated list? start here
JakenVeina
JakenVeina15mo ago
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.
Potato_Boy🦉
Potato_Boy🦉15mo ago
Thanks a lot it worked ^^
JakenVeina
JakenVeina15mo ago
o7
Accord
Accord15mo ago
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.
Potato_Boy🦉
Potato_Boy🦉15mo ago
/close