U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » FileSel&FileList, Path » FileSel: sort by file modification time
Re: FileSel: sort by file modification time [message #52157 is a reply to message #52156] Tue, 30 July 2019 12:48 Go to previous messageGo to previous message
Tom1
Messages: 1319
Registered: March 2007
Ultimate Contributor
Hi,

On the second thought, instead of the above, could we simply have this added to FileSel.h:
#define FILELISTSORTVERSION 2


This way I could tell apart which version of file list sorting I'm dealing with. The rest can be handled in an inherited class allowing access to list.Columns too... This approach allows backward compatibility for my code with earlier Upp versions.

Best regards,

Tom

EDIT: Looking at the large picture, is there or could it be possible to have a builder injected "#define UPPSVNREVISION xxxxx" so I could refer to that in any piece of code? This would completely resolve the above and all similar compatibility issues where support for different Upp versions is required.

[Updated on: Tue, 30 July 2019 13:26]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FileList/FileSel: Load() function ignores the last modification time of entries
Next Topic: Application hangs on renaming directories accidentally
Goto Forum:
  


Current Time: Sat Sep 05 05:36:33 GMT+2 2026

Total time taken to generate the page: 0.00717 seconds