A
Aaron
How do you detect a string that is all capitalized?
ie.
string s = "MY NAME IS"; return true;
string s = "My Name is"; return false;
ie.
string s = "MY NAME IS"; return true;
string s = "My Name is"; return false;
Aaron said:How do you detect a string that is all capitalized?
ie.
string s = "MY NAME IS"; return true;
string s = "My Name is"; return false;
Ryan said:if ( s == s.ToUpper( ) )
{
// it's in all caps
}
Jesse McGrew said:That will also detect strings that don't contain any letters... if s is
"1234" it will return true. You may want to make sure the string
contains at least one letter.
Jesse