|
-
Jan 28th, 2007, 11:18 AM
#1
Thread Starter
Fanatic Member
[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.
-
Jan 28th, 2007, 12:28 PM
#2
Re: Save Listbox Into Single String... FAST
-
Jan 28th, 2007, 12:48 PM
#3
Thread Starter
Fanatic Member
Re: [Resolved]Save Listbox Into Single String... FAST
Damm... time for World Domination Plan B
-
Jan 28th, 2007, 10:34 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|