I have updated my isUpperLower UDF. I am including the code here for anyone
who would like a copy. It will check the submittesd character to see if is an
AlphaNumeric Upper or Lower case and return Not ALpha, Upper or Lower.
<cfscript>
/**
* Checks to see if a letter submitted is Alphanumeric Upper or Lower Case.
*
* @param character The letter to test.
* @return Returns upper, lower or Not Alpha.
* @author Larry Juncker ([EMAIL PROTECTED])
* @version 1, November 16, 2005
*/
function isUpperLower(character)
{
if (Asc(character) gte 65 and Asc(character) lte 90) {
resultString = "upper";
} else if (Asc(character) gte 97 and Asc(character) lte 122) {
resultString = "lower";
}else{
resultstring = "Not Alpha";
}
return resultString;
}
</cfscript>
Just save teh above code in your root folder as isUpperLower.cfm and call it
with a cfinclude.
Hope this helps and is a better tester for everyone.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224717
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54