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:
01362379
Vues:
17
>>Hi,
>>
>>I made a big mistake an application I wrote about a year ago that just came back to hunt me. Here is what I did:
>>
>>I retrieved all files from a certain folder into an array and then I wanted to sort the array on the file name.
>>
>>
>>nFiles = ADIR( aInputFiles, "*.TXT" )
>>asort( aInputFiles, 5)
>>
>>
>>Obviously (it looks to me) that the line ASORT( aInputFiles, 5) is wrong. My question is, what is the actual order of elements of array aInputFiles I get with my syntax? What would be the right syntax of the ASORT to sort the array on file name?
>>
>>Thank you in advance.
>
>ASORT(aArr,5) means that you start your sorting from the 5th element.

I don't know what I was drinking when I wrote this code. Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform