Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on ADIR() and ASORT()
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01362370
Message ID:
01362386
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>>You sorted it on the fifth column, which is a file attributes. To sort on the first column ( a file name), ommit the second parameter all together
>>
>>ASORT(aInputFiles)
>>
>>
>
>Thank you for your help. But (just so that I can learn) if I used parameter 1, would ASORT(aInputFile,1), still sort on the first column? I am just trying to justify to myself that maybe using parameter 5 was just a type and not early sign of losing my mind *g*.

Yes '1' would work too. For 2D arrays, the second parameter is the column to sort on as long as it's less or equal the # of columns in the array. Otherwise it'll be the column to sort on plus the row to start sorting on.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform