Line Break problem in MX

2002-10-16 Thread Colin Murphy

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)#";


--

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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Line Break problem in MX

2002-10-16 Thread Adrian Lynch

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)#";


--

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
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Line Break problem in MX

2002-10-16 Thread Colin Murphy

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)#";
>
>  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