Results 1 to 4 of 4

Thread: [Resolved]Save Listbox Into Single String... FAST

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    [Resolved]Save Listbox Into Single String... FAST

    I'm trying to save listbox contents into a single string, each line seperated by a | character. From this string i intend to write to a file.

    When loading the file i'll seperate each line by using the Split function and | as the delimeter.

    The problem here is that I'll have to use a Do Loop, or somthing along those lines, which is OK, but i'm trying to get something a little faster.

    Is there like some short code that one of you uber programmer guys know that makes this a little more easier and faster?
    Last edited by Slyke; Jan 28th, 2007 at 12:48 PM.

  2. #2

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: [Resolved]Save Listbox Into Single String... FAST

    Damm... time for World Domination Plan B

  4. #4
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: [Resolved]Save Listbox Into Single String... FAST

    Dont do repeated string concatenations... resize a string array according to listbox count -1 then transfer the data... delimit the string array using Join(), which will also produce your string and use one Print # to dump the entire string to file.

Posting Permissions

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



Click Here to Expand Forum to Full Width