new line in Textedit?


    Dec 18 2006 | 1:57 am
    Hello!
    i've a litle problem!
    i need to send a list to the textedit object but all the elements of the list go to the first line
    I need them in separated lines! as a "text" :)
    ex:
    [name date size velocity "p1 c play go 241" etc...]
    TO
    name date size velocity p1 c play go 241 -- with no " " etc...
    So! there are some way to do that?
    Thanks for the help!

    • Dec 18 2006 | 4:03 am
      ola Rui, [iter] is your friend to get elements of a list output sequentially. i am not sure you can have several "lines" in [textedit] , but you could do it in [lcd]... check these mini examples out :
      Quote: Rui Caldas wrote on Sun, 17 December 2006 17:57 ---------------------------------------------------- > Hello! > > i've a litle problem! > > i need to send a list to the textedit object but all the elements of the list go to the first line > > I need them in separated lines! as a "text" :) > > ex: > > [name date size velocity "p1 c play go 241" etc...] > > TO > > name > date > size > velocity > p1 c play go 241 -- with no " " > etc... > > > So! there are some way to do that? > > Thanks for the help! ----------------------------------------------------
    • Dec 18 2006 | 4:24 am
      Quote: Rui Caldas wrote on Sun, 17 December 2006 17:57
      > I need them in separated lines! as a "text" :)
      if you need them as a textfile you can also write one through [text]. but i am not sure that's what you are looking for...
    • Dec 18 2006 | 11:20 am
    • Dec 18 2006 | 6:48 pm
      ola Rui, i understand your problem now. did you try the "separator" message for [textedit] ? in the Reference manual it says :
      "The word separator, followed by any symbol, sets that symbol as a line separator. and treats it as a carriage return when the contents of the buffer are output. If the buffer contains the text ?red green blue? and the object receives the message separator green, the next bang received by textedit will output red (carriage return) blue."
      which means you have to include "ghost" words as separators in your scripts at the end of each line. does not seem to b a good solution but it could work...
      Quote: Rui Caldas wrote on Mon, 18 December 2006 03:20 ---------------------------------------------------- > Hello! > Thanks for your help, and sory for my question... > > I need to send the list to the textedit object to edit it! > > in your example, only the last line is showed... at the first line. > > i've alredy tried with the text object, but you need to "close" the window of text and press another button to aply the text to the coll object. > > If there are some way to detect the "window close" this is no problem, but if i forget to press the button after closing the text window i'm not able to use the new changes! > > i'm using coll to store some or lot of small scripts to control the patch. the structure is: > > "Name of the script" line 1 line 2 line 3 etc... > > so i need to have all lines in the textedit object. > > I'm not good in english, and i'm very dificult to explain the patch. > > The next patch is what i'm doing.... > ignore the bug in the "add script" button. it only add one script at the first line! > > note: when you close the text window you have to press the "save" button to aply to coll! > >
    • Dec 19 2006 | 11:36 pm
      Hello,
      Is this what you're looking for?
      Georg On Dec 18, 2006, at 1:57 AM, Rui Fernando Caldas wrote:
      > > Hello! > > i've a litle problem! > > i need to send a list to the textedit object but all the elements > of the list go to the first line: > > ex: > > message box > |---------------------------------------------------| > | name date size velocity "p1 c play go 241" etc... | > |---------------------------------------------------| > > to > > textedit > |---------------------------------------------| > | | > | name | > | date | > | size | > | velocity | > | p1 c play go 241 -- with no " " | > | etc... | > | | > |---------------------------------------------| > > So! there are some way to do that? > > Thanks for the help! > -- > Rui Fernando Caldas
    • Dec 20 2006 | 1:11 am
      YES!!!!!
      Hello again!
      You example is what i'm looking for!
      i will try to implement the objects in the patch and i soon tell you some thing!
      Thanks!