AH HA! Found it. replace(FORM.Customer_Name, Chr(13) & Chr(10), chr(13), "ALL")
Apprently chr(13) & chr(10) represents a "Windows newline". Looks like this works. I will keep testing. Chad -----Original Message----- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Tuesday, June 01, 2010 3:32 PM To: cf-talk Subject: RE: PDF multi-line input Either way, it seems to be when I pull the data from the database and use CFPDFFORM and insert it back into the PDF. If I submit the PDF there are extra carriage returns in the data. Using the replace of chr(10) and chr(13) did not help either. It is like the PDF displays single carriage returns, but it submits to the update as double carriage returns. Im stumped! Chad -----Original Message----- From: Ian Skinner [mailto:h...@ilsweb.com] Sent: Tuesday, June 01, 2010 3:05 PM To: cf-talk Subject: Re: PDF multi-line input 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:334191 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm