Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR, SYS(2000) and Filer all returned wrong results
Message
 
 
À
01/12/2006 13:32:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01173982
Message ID:
01174192
Vues:
17
>>>Yes, but SUS(2000) stops when find a file, Filer build a collection :-)
>>>
>>Right, but if we're doing it in the DO WHILE loop, should they be equavalent?
>
>Only test will tell.
>I have no folder with so many files in it to test.
>But you could try:
>
>m1 = DateTime()
>oCollection = NEWOBJECT([Collection])
>lcFileName = SYS(2000, [........])
>DO WHILE NOT EMPTY(lcFileName)
>   oCollection.Add(lcFileName,JUSTFNAME(lcFileName))
>   lcFileName = SYS(2000, [........],1)
>ENDDO
>? DATETIME() - m1
>
>*** Test fro Filer here
>
I see. Well, using collection may be a culprit and that's why it's slower.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform