text of a field member to file --> ugly characters instead of RETURN

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default text of a field member to file --> ugly characters instead of RETURN

    Hello,

    I have stored text within a field member. The text is line by line, that
    is to say after each line a RETURN.
    When writing this into a textfile, it results in ugly squares instead of
    RETURNs and all is in one line.

    How can I get rid of this and make it look properly? I use Director 8.5
    and the FileIO Xtra.

    Thank you in advance!

    Chris
    Christian Grass Guest

  2. Similar Questions and Discussions

    1. putting transform data from field text member
      i have a scene that I want to set the transforms of the object to one's that I recorded from a startmovie handler. Ive tested the code for the...
    2. importing text into a field member pt2
      All works fine when I import text (menu items) from an external txt file using fileIO xtra. However, forgetting security restrictions, I forgot that...
    3. Print text field member
      I would like to allow the users to print a text field member when they play the projector. when I use: print member ("printable text...
    4. Printing a external text file or printing a text field cast member...
      use BuddyApi Xtra to use external app. for print a file like MSWord,
    5. Printing a externat text file or printing a text field cast member...
      Try searching the NG archives. Search on 'Print O Matic' (that's the Xtra..the lite version comes with Director). hth, doug "PrEnt"...
  3. #2

    Default Re: text of a field member to file --> ugly characters instead of RETURN

    On 30 Oct 2003, Christian Grass <someone@something.net> wrote:
    > How can I get rid of this and make it look properly? I use Director 8.5
    > and the FileIO Xtra.
    And probably Windows, not Mac.

    [url]http://makeashorterlink.com/?Q11025366[/url]

    (tinyurl seems to be down today)


    --
    Mark A. Boyd
    Keep-On-Learnin' :)
    Mark A. Boyd Guest

  4. #3

    Default Re: text of a field member to file --> ugly characters instead of RETURN

    replace
    RETURN
    by
    numToChar(13) & numToChar(10)
    (or inverse order, can't remember right now) just before writing your text
    to the file : windows txt file format expects CR+ LFas line ends, and not
    only CR

    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "Christian Grass" <someone@something.net> a écrit dans le message de
    news:oprxu5qpiyi5yru5@forums.macromedia.com...
    | Hello,
    |
    | I have stored text within a field member. The text is line by line, that
    | is to say after each line a RETURN.
    | When writing this into a textfile, it results in ugly squares instead of
    | RETURNs and all is in one line.
    |
    | How can I get rid of this and make it look properly? I use Director 8.5
    | and the FileIO Xtra.
    |
    | Thank you in advance!
    |
    | Chris


    Ned Guest

  5. #4

    Default Thank you !

    thank you!

    replacing simply the RETURNs by "numToChar(13) & numToChar(10)" works!!!


    On Thu, 30 Oct 2003 17:32:40 +0100, Ned <nednet_HATES_SPAM@wanadoo.fr>
    wrote:
    > replace
    > RETURN
    > by
    > numToChar(13) & numToChar(10)
    > (or inverse order, can't remember right now) just before writing your
    > text
    > to the file : windows txt file format expects CR+ LFas line ends, and not
    > only CR
    >
    Christian Grass Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139