Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting files by date and time
Message
 
 
To
23/12/2009 17:17:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Application:
Desktop
Miscellaneous
Thread ID:
01422390
Message ID:
01440431
Views:
84
This message has been marked as the solution to the initial question of the thread.
>thanks sergey - this still gives earliest file (1990) - is there any way of finding out what is on the bottom of that sort list?
>k
>
>ltZeroTime = CTOT("00:00:00")
>= ADIR(laFieList, 'c:\db\prg\*.prg')
>FOR i= 1 TO ALEN(laFieList,1)
> laFieList[i,5] = DTOT(laFieList[i,3]) + (CTOT(laFieList[i,4]) - ltZeroTime)
>ENDFOR
>= ASORT(laFieList, 5)
>? lafielist

Karen,

Sorts elements in an array in ascending or descending order.


ASORT(ArrayName [, nStartElement [, nNumberSorted [, nSortOrder [, nFlags]]])

Add sort order to this command.

= ASORT(laFieList, 5,0,2)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform