|
-
Mar 8th, 2007, 06:55 PM
#1
Re: help improve code -urgent
Before output to textout.txt recreate array with vbCrLf as delimiter
strAll = Split(Join(strAll, vbNullString), vbCrLf)
And transfer to a listbox with sorted = true
Code:
For lngIdxAll = 0 To Ubound(strAll)
List1.AddItem strAll(lngIdxAll)
Next
Then for output.txt, simply iterate through sorted listbox and Print #intFF each listbox item.
Last edited by leinad31; Mar 8th, 2007 at 08:58 PM.
-
Mar 8th, 2007, 10:46 PM
#2
Thread Starter
Lively Member
Re: help improve code -urgent
 Originally Posted by leinad31
Before output to textout.txt recreate array with vbCrLf as delimiter
strAll = Split(Join(strAll, vbNullString), vbCrLf)
And transfer to a listbox with sorted = true
Code:
For lngIdxAll = 0 To Ubound(strAll)
List1.AddItem strAll(lngIdxAll)
Next
Then for output.txt, simply iterate through sorted listbox and Print #intFF each listbox item.
is it must use listbox? if i don't want using listbox, how to do it? thanks.
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
|