Author Topic: Sort list of filenames in GetOpenFileDialog lisp function.  (Read 1909 times)

0 Members and 1 Guest are viewing this topic.

BillZndl

  • Guest
Sort list of filenames in GetOpenFileDialog lisp function.
« on: June 12, 2012, 08:38:28 AM »
AutoCAD R2012, VS2010

I've been tring to figure out why the file names are listed in random order in the displayed GetOpenFileDialog.
I end up having to hit the name bar at the top of the list of file names each time I open the dialog so they will sort.
Anyone care to share if there is a flag setting or some way to sort the list of files in alpha numeric order?

Reference Here.

Thanks.

fixo

  • Guest
Re: Sort list of filenames in GetOpenFileDialog lisp function.
« Reply #1 on: June 12, 2012, 09:37:34 AM »
I'd like to use List(of String) to store file names, then
just use Sort method for this list.

~'J'~

BillZndl

  • Guest
Re: Sort list of filenames in GetOpenFileDialog lisp function.
« Reply #2 on: June 12, 2012, 11:29:21 AM »
I'd like to use List(of String) to store file names, then
just use Sort method for this list.

~'J'~

Ya, that would be the ticket,
then I found out that all my widows apps were doing the same thing.
so I looked into the windows help under "sort".
As soon as I told windows7 explorer to sort ascending by name and restart AutoCAD, problem solved.

Seems like many things that used to be the default in windows are not the default anymore.

Thanks!