Dynamics 4.0: How can I check if a string is uppercase ??

chonichon
chonichon used Ask the Experts™
on
I'm trying with

 if (strtoupper($var1) == $var1)
    {
     }


but does not work.

Many thanks...
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
var ss = " testing case conversion method ";
var result = ss.toUpperCase();
if(result == ss)
{
 alert("Uper case");

}
else
{
alert("not Upper  case");
}

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial