ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Sort by filename numerically
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

cfabio

Italy
2 Posts

Posted - Sep 04 2017 :  06:58:04  Show Profile  Reply
Hi, I'd like to know if it's possible to sort by filename numerically on TImageEnMView.
Actualy after:
ImageEnMViewSeq.FillFromDirectory(dir)
I get:
1
11
12
2
20

instead of
1
2
11
12
20

Many thanks.

Patrick Quinn

United Kingdom
81 Posts

Posted - Sep 04 2017 :  17:16:55  Show Profile  Reply
Could you rename the files to put leading zeros in front of the filenames (0001, 0002 etc)? That should work.

All my digital cameras name files in this way (_DSC0001.NEF, _DSC0002.NEF etc).
Go to Top of Page

xequte

39053 Posts

Posted - Sep 04 2017 :  22:12:39  Show Profile  Reply
In 7.0.2, if you sort by "Filename without Extension" it will correctly sort number only filenames. You can email me for a pre-release if you like.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

cfabio

Italy
2 Posts

Posted - Sep 06 2017 :  12:04:42  Show Profile  Reply
Hi Patrick, many thanks for your good idea but in this case I can't rename because I receive files from another process and I'd like to avoid to rename. Many thanks for you help. Have a nice day. Fabio.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: