Results 1 to 10 of 10

Thread: help improve code -urgent

Hybrid View

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

    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.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    120

    Re: help improve code -urgent

    Quote 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
  •  



Click Here to Expand Forum to Full Width