|
-
Aug 7th, 2000, 09:39 AM
#1
Thread Starter
Addicted Member
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 ?
-
Aug 9th, 2000, 06:39 AM
#2
Member
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
-
Aug 9th, 2000, 06:52 AM
#3
Thread Starter
Addicted Member
Thanks for the reply, can you give me a small example, I am
not familiar with Array's....
-
Aug 9th, 2000, 06:57 AM
#4
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|