Professional Web Applications Themes

( I need help) How can i write in a second line in a sting? - Macromedia Director Lingo

i Have this script : -- writestring(obj, "Your points for Activity 1 is: ") -- writestring(obj,member("vva1").text) I am trying to save these two strings in a .txt file and i want to write the second string in line 2 in my (txt) file and i cant can you help me please ? ps : This two strinng are working but they are working like this : Your points for Activity 1 is: 50 *****for example **** And i want to looks like this : Your points for Activity 1 is: 50 **** in my .txt file ******...

  1. #1

    Default ( I need help) How can i write in a second line in a sting?

    i Have this script :

    -- writestring(obj, "Your points for Activity 1 is: ")
    -- writestring(obj,member("vva1").text)

    I am trying to save these two strings in a .txt file and i want to write the second string in line 2
    in my (txt) file and i cant


    can you help me please ?



    ps : This two strinng are working but they are working like this :
    Your points for Activity 1 is: 50 *****for example ****

    And i want to looks like this :

    Your points for Activity 1 is:
    50 **** in my .txt file ******


    ieraks webforumsuser@macromedia.com Guest

  2. #2

    Default Re: ( I need help) How can i write in a second line in a sting?

    -- you can insert a return character before the second line as below.


    -- writestring(obj, "Your points for Activity 1 is: ")
    -- writestring(obj, return & member("vva1").text)


    For Window files, you may need a linefeed character

    numToChar(10) provides one
    JB Guest

  3. #3

    Default Re: ( I need help) How can i write in a second line in a sting?

    I tried this one :

    writestring(obj, "Your points for Activity 1 is: ")

    writestring(obj,return&member("vva1").text)

    and the result is :


    Your points for Activity 1 is: |50

    Something lokk like that not working properly.
    and i don't know what.

    In a word doent it is working OK



    ieraks webforumsuser@macromedia.com Guest

  4. #4

    Default Re: ( I need help) How can i write in a second line in a sting?

    On 09 Nov 2003, "ieraks" [email]webforumsusermacromedia.com[/email] wrote:
    > I tried this one :
    >
    > writestring(obj, "Your points for Activity 1 is: ")
    > writestring(obj,return&member("vva1").text)
    > and the result is :
    > Your points for Activity 1 is: |50
    You didn't mention which platform you're using, so I'm going to assume
    you're having trouble reading this text file on Windows in programs like
    Notepad. Many Windows programs require both Carriage Return and a Line Feed
    characters to signify a new line. This search will bring up lots of
    solutions for you.

    [url]http://tinyurl.com/aybm[/url]


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

  5. #5

    Default Re: ( I need help) How can i write in a second line in a sting?

    Yes u are wright.
    Notepad is the program that makes me trouble

    how can i use line feed

    help me please i am desperate



    ieraks webforumsuser@macromedia.com Guest

  6. #6

    Default Re: ( I need help) How can i write in a second line in a sting?

    On 09 Nov 2003, "ieraks" [email]webforumsusermacromedia.com[/email] wrote:
    > Yes u are wright.
    > Notepad is the program that makes me trouble
    >
    > how can i use line feed
    I did the Google archives search for you. As I suggested last time, try
    this link.

    [url]http://tinyurl.com/aybm[/url]

    Or go to [url]http://groups.google.com/advanced_group_search?[/url]
    as_ugroup=macromedia.director.* and create a search of your own. The
    solution has been posted many, many times already.


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

Similar Threads

  1. Write and read to serial Line (ttyS0)
    By Volker Petzold in forum PERL Modules
    Replies: 2
    Last Post: November 9th, 10:25 AM
  2. Danm it!!! What extension or sting of code is that!!!
    By T. Pastrana - 4Level in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: August 12th, 03:37 AM
  3. vsftpd , need help with custom ports. FTP FTP where is thy sting?
    By Jelly in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: August 9th, 09:27 AM
  4. Question: Response.write (squiggly line)
    By VB Programmer in forum ASP.NET General
    Replies: 1
    Last Post: July 1st, 07:27 PM
  5. Write line at beginning of file?
    By Tad McClellan in forum PERL Miscellaneous
    Replies: 2
    Last Post: June 26th, 06:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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