Results 1 to 4 of 4

Thread: sorting listbox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 1999
    Location
    Ruinen, Drente, Netherlands
    Posts
    192
    We can sorted a listbox by setting the property 'sorted' on true and the
    list is sorted by the first letter(s) of the records in the listbox.
    Is it also possible by starting at, say collumn 10 to sort ?
    If yes, how ?

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60
    The best way to do that is put all of the list items in an array, then move the items in the order you want to the listbox, this will allow you to sort it in any way you want.

    Hope this helps,
    Grant French
    -----------------------------------------------
    E-Mail: [email protected]
    ICQ: 33122184

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 1999
    Location
    Ruinen, Drente, Netherlands
    Posts
    192
    Thanks for the reply, can you give me a small example, I am
    not familiar with Array's....

  4. #4
    Member
    Join Date
    Aug 2000
    Posts
    60

    Cool Array Basics

    An array is basically a variable that can store loads of values:

    You are used to putting Variable1 = "Hello"

    An array you would put Variable1(0) = "Hello"
    then you could continue Variable1(1) = "Hello2"
    and on and on, you get the point.

    To declare an array you should use the code below:

    'You should change 20 to the maximum number of entries you
    'want, and string to whatever data type you will be using.
    Dim Variable1(20) as String


    If you could mail me the code you already have it would help, please mail it to [email protected]

    I will take it from there,
    Grant French
    -----------------------------------------------
    E-Mail: [email protected]
    ICQ: 33122184

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