Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A second order sort with ASORT()
Message
De
03/07/2005 11:28:45
 
 
À
03/07/2005 11:24:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01028620
Message ID:
01028624
Vues:
39
>>A second order sort with ASORT()
>>--------------------------------------------------
>>
>>In the following command line, ADIR populates the
>>
>>"aFiles" array with all of the JPG files in the given folder.
>>
>>
>>nFiles = ADIR(aFiles,"C:\2005_Digital_Pictures\*.jpg")
>>
>>
>>The next line sorts the array by File Date.
>>
>>= ASORT(aFiles,3)
>>
>>
>>However, it would be nice to have a second order sort
>>by File Time (sorted first by File Date and then by File Time).
>>
>>I've got some ideas about how to do this, but was curious to see
>>if someone has already done this.
>>
>>Thanks!
>>Terry :)
>
>Terry,
>
>imo the fastest is to create a cursor, append from array and then select .. into array order by col3, col2, ..

Hi Gregory,
Sounds good. I was thinking along those lines myself.
Thanks!
Terry :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform