Quantcast
Channel: Answers for "C# Check First Letter of String"
Browsing latest articles
Browse All 11 View Live

Answer by Bravini

slice the string http://www.swishtutor.com/s/0020.htm then compare the result with what you want

View Article



Answer by Eric5h5

var myString = "abc"; print (myString[0]);

View Article

Answer by Rasmus Schlnsen

You can access chars of a string like arrays:String s = "tada"; if (s[0] == 't'){ Debug.Log("tada"); }

View Article

Answer by MortenK84

C#:String s = "tada"; Debug.Log("The first character of the string is: " + s.Substring(0, 1));What the substring method does is retrieve a string within the string. The first parameter 0 is the...

View Article

Answer by SARWAN

return (myString[0] >= 'A' && myString[0] <= 'Z') || (myString[0] >= 'a' && myString[0] <= 'z')

View Article


Answer by unity_Uxrdlqpo2JUXMA

/// /// Replaces the first occurrence. /// /// The source. /// The find. /// The replace. /// public static string ReplaceFirstOccurrence(string Source, string Find, string Replace) { int Place =...

View Article
Browsing latest articles
Browse All 11 View Live




Latest Images