|
-
Dec 31st, 2002, 01:47 AM
#1
Thread Starter
Fanatic Member
*** RESOLVED *** How to sort a Listbox/Combobox?
Hi,
... I checked all threads for "sort Listbox" before i posted this here.
I need to sort the data in a Listbox.
BUT .... the data are not from a database.
How to do it in a simple way?
(Please don't tell me ListBox1.Sorted = True ... it doesn't work, I tried it. It is a readonly parameter at runtime and when I set it to true in the parameterbox of the Listbox then it is still not sorted.)
Nice greetings
Franky
Last edited by Franky; Dec 31st, 2002 at 02:44 AM.
-
Dec 31st, 2002, 01:52 AM
#2
Well ...
Originally posted by Franky
Hi,
... I checked all threads for "sort Listbox" before i posted this here.
I need to sort the data in a Listbox.
BUT .... the data are not from a database.
How to do it in a simple way?
(Please don't tell me ListBox1.Sorted = True ... it doesn't work, I tried it. It is a readonly parameter at runtime and when I set it to true in the parameterbox of the Listbox then it is still not sorted.)
Nice greetings
Franky
Are the values strings or numbers? Also the Sorted property DOES work, however if you are displaying numbers, you may get results such as :
1
10
11
2
23
24
5
instead of
1
2
5
10
11
23
24
.
-
Dec 31st, 2002, 02:16 AM
#3
Thread Starter
Fanatic Member
Hi honeybee
First i have to say that I had a good laugh about this:
I am not a complete idiot. Some parts are still missing
... it is really funny!!!
Ok, to your .Sorted = true
If it works it would be nice. Tell me please EXACTLY where to set it?
nice greetings
Franky
-
Dec 31st, 2002, 02:23 AM
#4
Frenzied Member
Its an option in the properties window
NXSupport - Your one-stop source for computer help
-
Dec 31st, 2002, 02:25 AM
#5
Frenzied Member
In design time, right click on ListBox select 'Properties. Set 'Sorted' property to 'true'
-
Dec 31st, 2002, 02:43 AM
#6
Thread Starter
Fanatic Member
Hi
This was the first what I did before I posted this thread here.
Click in the properties Sorted = True
No sorting ..... sniff
----------------------------
And now I found it, hehe.
It works. I just didn't see that the former programmer of this here used instead of .AddItem .List to fill the data
Thanks
Franky
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
|