I concede....that is a better test.
Larry Juncker President & CEO ALJ Computer Services, LLC 1445 So 27th Street Fort Dodge, IA 50501 Office 515-576-0885 Fax 515-576-8510 Cell 515-571-1826 [EMAIL PROTECTED] -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Saturday, November 19, 2005 9:00 AM To: CF-Talk Subject: Re: Upper/Lowercase >>and return Not ALpha, Upper or Lower. It still does not return proper info for international characters. Since CF is a multilingual application, the least would be the function to be compatible with uCase and lCase CF functions and Locale settings. So I maintain this to be a better solution : (Note that the function asc() must be use in order to bypass the case less comparison operators in CF. <CFSCRIPT> // checks if parameter is lower case letter (returns -1) // uppercase letter (returns 1) // or not a letter (returns 0) function isUpperLower(ch) { var upper = asc(uCase(ch)); if (upper EQ asc(lCase(ch))) return 0; if (upper EQ asc(ch)) return 1; return -1; } </CFSCRIPT> It returns: isUpperLower("a") = -1 isUpperLower("A") = 1 isUpperLower("é") = -1 isUpperLower("É") = 1 isUpperLower("ç") = -1 isUpperLower("Ç") = 1 isUpperLower("ñ") = -1 isUpperLower("Ñ") = 1 isUpperLower("æ") = -1 isUpperLower("Æ") = 1 isUpperLower("1") = 0 isUpperLower("?") = 0 isUpperLower("@") = 0 -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:224720 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

