You could also use a regular expression:
<cfif REFind("[[:upper:]]", X) gt 0>
or
<cfif REFind("[[:lower:]]", X) gt 0>> -----Original Message----- > From: J W [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 17, 2005 1:48 PM > To: CF-Talk > Subject: Upper/Lowercase > > IS there a better way to find out if a character is Upper or > lowercase other > than > > <cfif (Asc(X) gte 65) and (Asc(X) lte 90)> or > <cfif (Asc(X) gte 97) and (Asc(X) lte 122)> where X is the letter I am > comparing??? > > I've seen some sample code of making a CF function for ISUpperCase and > IsLowerCase. It uses the above technique. > > I figured I would throw it out there if there was another > more effecient > way. > > Thanks! > Jeff > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224552 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

