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:334188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to