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:
01362387
Vues:
14
>>>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.

I think ADIR() allways sort by file name.
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform