4 Replies Latest reply on Nov 6, 2009 12:21 PM by GiambattistaScivoletto

    isUppercase(string) ?


      Hi, I would like to find a function that check if a string is all written in Uppercase and if so, to capitalize it.


      I'll capitalize it with CSS using: text-transform: capitalize, but the only coldfusion function I found on line check only a character:


        function isUpperCase(char) {
           if (Asc(char) gte 65 and Asc(char) lte 90)
              return true;
           return false;


      Someone is able to write it in a way that check if a whole string is UPPERCASE ?


      I'm not able to ... I should study, I know, but I'm in hurry ...