Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
LiveCD
DisplayRes
Set PlayBackMode of a Flash Member
Face Mouse-Alphamania
Install-us Pro
cXtraGraphicIO
Pause Button
Write Text to File Example
Image Magnify
Export Text for proofing
MediaMacros Xtras Mall
 

 

 

Behavior Add/Remove Line Feeds

Added on 2/15/2000

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

Rating:

Author: Macromedia (website)

From Technote #3151 at Macromedia.com

--remove line feeds
on CRLF2CR source
    set dest to ""
    repeat while true
      set theOffset to offset(numToChar(10), source)
      if NOT theOffset then exit repeat
      put char 1 to (theOffset - 1) of source after dest
      delete char 1 to theOffset of source
    end repeat
    put source after dest
    return dest
end CRLF2CR

--add line feeds
on CR2CRLF source
    set dest to ""
    repeat while true
      set theOffset to offset(numToChar(13), source)
      if NOT theOffset then exit repeat
      put char 1 to theOffset of source after dest
      put numToChar(10) after dest
      delete char 1 to theOffset of source
    end repeat
    put source after dest
    return dest
end CR2CRLF

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail