Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory Order backwards.
Message
 
To
02/07/2009 14:14:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01409797
Message ID:
01409825
Views:
45
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform