ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 9th, 2003, 11:23 AM
daedae daedae is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: richmond, va
Posts: 9 daedae User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Parsing a variable for conversion

There's probably some simple way to do this but I haven't figured it out yet. I have a text file that gets read in and displayed in an html page. Obviously (as mentioned in an earlier post) all of the returns and such get read as regular whitespace in HTML, so I want to go through and convert all carriage returns to a line break tag. However, Find and FindNoCase for "\n" don't work, is there another escape code I need to be searching for? Or even better, something built in to do this for me?
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old July 9th, 2003, 07:04 PM
ecastillo ecastillo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Colorado
Posts: 6 ecastillo User rank is Private First Class (20 - 50 Reputation Level)ecastillo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try chr(10) or chr(13) with no quotes in your Find.

Reply With Quote
  #3  
Old July 9th, 2003, 09:27 PM
daedae daedae is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: richmond, va
Posts: 9 daedae User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks, I actually got a couple other suggestions for that so I'll try it tomorrow. yay for meetings taking up the last hour and a half of your productive time...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Parsing a variable for conversion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway