On 6/1/2010 11:48 AM, Robert Harrison wrote: > #replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)# > > You need the ## around the characters. Otherwise you're looking to replace > the literal string 'chr(10)'. >
No you don't. #replace(FORM.Contact_Name, chr(10), chr(13))# Is perfectly fine and clean code. If you where to enclose the chr() functions in quotes, making them stings, then you would need hash characters, but there is little reason to do that, unless you have other characters in your string. #replace(FORM.Contact_Name, "#chr(10)#", "#chr(13)#")# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334184 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm