Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Game protector
Font Freak
Glu32
Shockwave Remote Faq
HSB Shifter-Alphamania
AnimCap
Seurat-Alphamania
3D Rotation
Sprite Blender - Time
Show a range of sprite channels
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail