I didn't think it was that obvious - one could easily be tempted to write a complicated date sorting routine...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter
Sent: Thursday, 8 February 2001 21:12
To: Multiple recipients of list delphi
Subject: RE: [DUG]: sorting files

O k....thanks for pointing out the obvious  :)
 
What II am really looking for, is what kind of list I should use.
I am figuring I will need to do something like list.addobject('blah',pointer(datenumber))
But what list can I use or would be best to use that i can sort by the datanumber ? (other than a TListview)
 
Cheers, Jeremy
 
 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Dunford
Sent: 09 February, 2001 7:59 PM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: sorting files

Once you have the date as a TDateTime you just need to sort it on a straight numerical basis.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter
Sent: Thursday, 8 February 2001 16:33
To: Multiple recipients of list delphi
Subject: [DUG]: sorting files

Hi all.
This is related to my earlier post about TSearchRec.
 
What I have is a dir that has files in it with names that are unique.
What I need to do, is sort the files so that they are in order of date and time in a list. (TstringList)
 
Does anyone have any bright ideas on the best way to do this ?
It woudl need to be res. quick at it too.
 
Cheers, Jeremy coulter

Reply via email to