Hi guys! I'm sorry if the question is a bit unclear since I don't know how should I put it.
Basically it's should be something simple, I just want to get the first "x" numbers from a string and turn them into a new string. For example, I have a string "unity", I want to get the first 2 characters from the string so the new string should be "un". Thank you in advance =)
asked Mar 12 '12 at 10:17 AM
Use string.Substring(). You use it like this:
x being the character index you wish to begin your SubString at, and y being the length of characters you want the Substring to be. So in your case it would be:
and this would return
Hope that helps! Klep