Results 1 to 5 of 5

Thread: [RESOLVED] sorting a filelistbox

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    Resolved [RESOLVED] sorting a filelistbox

    I have a filelistbox that display filenames inside a specific folder
    File1.path="C:\tempproject"
    the filenames are of the following format:
    1Daily20042006,2Daily20042006,....10Daily20042006.........50Daily29042006
    but the filelistbox displays the files as following:
    10Daily
    11Daily
    12Daily
    ...
    1Daily
    20Daily
    21Daily

    What I want is to sort them in the following order:
    1Daily,2Daily,3Daily....10Daily,11Daily.....20Daily,21Daily....

    how can i sort them?

  2. #2
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: sorting a filelistbox

    You can use any sorting algorithms to achieve your goal.
    CS

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    Re: sorting a filelistbox

    can i clear up ur answer pls?

  4. #4
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: sorting a filelistbox

    Here is the subroutines for sorting arrays of Integers, Longs, Singles, Doubles, Strings, and Variants.
    Attached Files Attached Files
    CS

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    Re: sorting a filelistbox

    thanks cssriraman

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