RSS ? Recent Blog Posts

Blogs ยป Archive for April 13th, 2004

Upper case / Lower case functions

by davidjmedlock

…posted by davidjmedlock:

This originated out of some project I was thinking about doing and I though it’d be useful for others. These functions check to see if a character is upper case or lower case:

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

function isLowerCase(character) {
if (Asc(character) gte 97 and Asc(character) lte 122) {
return true;
}
else {
return false;
}
}

#isUpperCase(”A”)#
#isLowerCase(”A”)#
#isUpperCase(”a”)#
#isLowerCase(”a”)#

Have fun with it.

 

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Logo Design, Web page Design and more!

99designs

  • Custom logo designs created ‘just for you’.
  • Pick the design you like best.
  • Only pay if you’re satisfied with the result.

Want More Traffic?

Get up to five quotes from qualified SEO specialists, with no obligation!

Get A Free SEO Quote Now!