New topic: 

Change Carriage return to BREAK

<http://forums.realsoftware.com/viewtopic.php?t=47638>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        JohnV          Post subject: Change Carriage return to 
BREAKPosted: Thu Apr 18, 2013 5:16 pm                         
Joined: Sun Jan 28, 2007 2:38 pm
Posts: 218                I need to take some raw text and convert the 
linefeeds to HTML breaks.

This does not work.

myhtml=Replace(myhtml, chr(13), "<br>")

What does?   
                             Top                charonn0          Post subject: 
Re: Change Carriage return to BREAKPosted: Thu Apr 18, 2013 5:18 pm             
                    
Joined: Mon Apr 02, 2007 2:08 am
Posts: 1191
Location: San Francisco, CA, USA                The Replace method replaces 
only the first instance of the specified string. To replace all instances use 
ReplaceAll.      
_________________
Boredom Software  
                             Top                JohnV          Post subject: 
Re: Change Carriage return to BREAKPosted: Thu Apr 18, 2013 5:52 pm             
            
Joined: Sun Jan 28, 2007 2:38 pm
Posts: 218                Nope.  That was the FIRST foolish mistake I made.

Upon correcting that RS(Web)  does not recognize line feed in the text area as 
ASCII 13.  What character is it?   
                             Top                DaveS          Post subject: 
Re: Change Carriage return to BREAKPosted: Thu Apr 18, 2013 5:53 pm             
                    
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4770
Location: San Diego, CA                chr(10)
or
chr(13)
or 
chr(10)+chr(13)
or
chr(13)+chr(10)

or EndofLine (assuming WEB versions supports that?)

replacelineendings(myhtml,"<br>") ??      
_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to