Thanks but I tried that and all it done was add another character to the
string instead of creating a line break.

Colin
----- Original Message -----
From: "Adrian Lynch" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 10:41 AM
Subject: RE: Line Break problem in MX


> Might you also need to put Chr(13) in there as well?
>
> Ade
>
> -----Original Message-----
> From: Colin Murphy [mailto:[EMAIL PROTECTED]]
> Sent: 16 October 2002 10:36
> To: CF-Talk
> Subject: Line Break problem in MX
>
>
> I have a problem with creating a string with line breaks in it and saving
> the string to a file.
> -------------------------------------------------
>   messagetext="";
>   messagetext = "#messagetext##reference#";
>   messagetext = "#messagetext##Chr(10)##replacedphonenumber#";
>   messagetext = "#messagetext##Chr(10)##Trim(message)#";
>
> <cffile action="WRITE" file="file.txt" output="#messagetext#"
> addnewline="No">
> --------------------------------------------------
>
> This code ran fine in coldfusion 4.5 but it seems to be putting invalid
> characters instead of line breaks in MX.
> I have changed the code todo three file appends which works, but I was
> hoping someone would be able to suggest a better way of doing this.
>
> Cheers,
>
> Colin Murphy
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to