Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Buddy Saver
Direct Media Simple Control
Saving Global Variables to a File
HTML Xtra
Binary IO
Drop Shaddow Animating Lame Button-Alphamania
Puzzler II, Slide it!
Multiple-timer facility
robotduck.com
Fast Blur Algorithm
MediaMacros Xtras Mall
 

 

 

Behavior Replace returns with PC line breaks

Added on 7/16/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: MediaMacros (website)

This replaces all returns with valid PC line breaks for saving text files.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

on replaceBreaks whatText
  set PCBreak  = numToChar(13) & numToChar(10)
  set theText = ""
  repeat with x = 1 to the number of lines in whatText
    if x = 1 then
      set theText = line x of whatText
    else
      set theText = theText & PCBreak & line x of whatText
    end if
  end repeat
  return theText
end

on getBehaviorDescription
  describe = "Call thsi function to convert all returns to PC line breaks before saving to a text file."
  return describe
end

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail