Advertisement

11.14.2005 at 10:56PM PST, ID: 21631027
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Replace Line Breaks using #chr(10)# and / or #chr(13)#

Tags: coldfusion, replace, line
Okay, I've programmed ColdFusion for a few years now.  I'm always replacing line breaks by doing:

-----
<cfset MyString = Replace(MyString, "
", "", "ALL")>
-----

Now I know you can do the same using either #chr(10)# and/or #chr(13)#.  However, I never know which one to use or why?  Can someone help explain this so that I will remember it in the future?  Which of the following do I want to use and why?:

<cfset MyString = Replace(MyString, "#chr(10)#", "", "ALL")>
<cfset MyString = Replace(MyString, "#chr(13)#", "", "ALL")>
<cfset MyString = Replace(MyString, "#chr(10)##chr(13)#", "", "ALL")>
<cfset MyString = Replace(MyString, "#chr(13)##chr(10)#", "", "ALL")>

or:

<cfset MyString = Replace(MyString, "#chr(10)#", "", "ALL")>
AND THEN
<cfset MyString = Replace(MyString, "#chr(13)#", "", "ALL")>

Andrew
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: rebies
Solution Provided By: mrichmon
Participating Experts: 3
Solution Grade: B
Views: 503
Translate:
Loading Advertisement...
11.14.2005 at 11:27PM PST, ID: 15293722

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
11.15.2005 at 04:11AM PST, ID: 15294700

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
11.15.2005 at 08:44AM PST, ID: 15296729

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
11.15.2005 at 10:31AM PST, ID: 15297637

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
11.16.2005 at 04:54PM PST, ID: 15308184

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
11.17.2005 at 08:37AM PST, ID: 15312942

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29