Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting files by date and time
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Application:
Desktop
Divers
Thread ID:
01422390
Message ID:
01440431
Vues:
83
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform