>thanks Boris - i am using VFP9 like you.
>
>if i understand 'help' correctly
>
>asort(ladir,3) would sort on date of directory - from the evidence i see displayed running this program,
>the order looks correct now. Is this logical way to proceed?
Yep, but if you wan to add time also, then I suggest you to create a cursor with all 5 columsns and index it as you wish:
CREATE CURSOR crsDirs (cName C(254), Size N(18), LastModified D, TimeLastMod C(8), Attr C(10))
ADIR(laFolders, ....)
APPEND FROM ARRAY laFolders
INDEX ON DTOS(LastModified)+TimeLastMod TAG crsDirs
BROWSE NORMAL
(not tested!!!)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.