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:
01363568
Vues:
16
Thanks Sergey,
I run the code on the volume with FAT file system (FDD) too.
The files weren't ordered by name.

I create files on FDD in this order:
TEST.TXT
FTEST.TXT
ATEST.TXT
BTEST.TXT

The result is:
TEST.TXT
FTEST.TXT
ATEST.TXT
BTEST.TXT
--------------------
Then I copy these files on C Drive (NTFS) and the result is:
ATEST.TXT
BTEST.TXT
FTEST.TXT
TEST.TXT

>I run the code on the volume with FAT file system and files weren't ordered by name. On NTFS they're ordered
>
>>I try now this sample code
>>
>>#DEFINE CRLF CHR(13)+CHR(10)
>>lnFiles = ADIR( laArray, [c:\windows\*.*])
>>lcFile = []
>>FOR ijk = 1 TO lnFiles
>>    m.lcFile = m.lcFile + laArray[m.ijk,1] + CRLF
>>NEXT
>>STRTOFILE(m.lcFile,[c:\test.txt])
>>MODIFY FILE c:\test.txt NOEDIT
>>
>>
>>and I'm surprised.
>>Seem as all is ordered 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
Répondre
Fil
Voir

Click here to load this message in the networking platform