Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sort a filelistbox

Status
Not open for further replies.

sbdproj

Programmer
Sep 22, 2003
22
NL
Is there a simple way to sort a filelistbox?
 
I thought they were sorted by default..

but you could do it this way, using a listbox to display the contents of a hidden filelistbox

for a = 0 to file1.listcount -1
list1.additem file1.filename(a)
next a
list1.sorted=true
 
The file listbox is sorted yes that's true, but I want to get it sorted descending and not ascending.

I've used a listbox now and that works but I was just wondering if there was another solution with the filelistbox itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top