You could use mid(mystring, i, 1) which returns a substring starting at i and 1 long.
--Ben Doom Richard White wrote: > Hi, > > I have a javascript function that checks for any unwanted string character > values - such as \ or / etc... > > In Javascript i loop through the length of the string and use the code: > > myString.charCodeAt(i) // this gives me the asci value for the character so i > can test if it is an unwanted character > > is there any similar function in coldfusion? > > Thanks very much > > Richard > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293253 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4