User Tag List

Results 1 to 5 of 5

Thread: Reformat list into long string.

  1. #1
    No Products Registered

    Join Date
    Jun 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reformat list into long string.

    Simply... how do I turn a list of items such as

    one
    two
    three
    four
    five

    into

    one, two, three, four, five

    in an expression or loop

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reformat list into long string.

    Well, start a fastloop "listloop" ListNbLines("List object") times

    then on that loop: Set alterable string of "String" to string$("String")+ListGetAt$("List object"), loopindex("listloop"))+", "

    (I think it's ListGetAt$ , but it might be ListLine$ or something. Just use the dialog to find out )

  3. #3
    No Products Registered

    Join Date
    Jun 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reformat list into long string.

    ill give that one a shot, if any problems exist ill come back and complain. lol.

  4. #4
    No Products Registered

    Join Date
    Jun 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reformat list into long string.

    turned out to be

    string$( "ListFormat" )+List Line Text$( "List", LoopIndex("listloop"))+","

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reformat list into long string.

    Ah yes, List Line Text$()

    Glad to help

Similar Threads

  1. Unable to change a string with the list obect if string contains three periods in row
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th January 2013, 03:01 PM
  2. Trouver un texte dans un String long
    By markymoniom in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 18th September 2012, 04:00 AM
  3. Set edit box text to string$("string object") causes long delay
    By MJK in forum XNA Export Module Version 2.0
    Replies: 4
    Last Post: 22nd August 2012, 02:58 PM
  4. reformat edit box input and output as $x,xxx,xxx
    By JohnArtbox in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th September 2011, 03:59 AM
  5. control x key string list?
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th October 2008, 11:27 PM

Posting Permissions

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