Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid subscript reference
Message
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:
01173721
Message ID:
01173893
Vues:
13
>>Whit both versions (8 and 9) I can't get this file when I use:
>>adir(laFiles, "D:\jpg\*E4*.jpg").
>>(I have a file named K-NK1648PS.JPG in that folder)
>>
>>Why not try something like this:
>>
>>CREATE CURSOR crsTest (FieldName M)
>>lcFileName = SYS(2000,[*.*]) && All files
>>DO WHILE NOT EMPTY(lcFileName)
>>   IF LIKE(UPPER(myStemPart), UPPER(JUSTSTEM(lcFileName))) OR;
>>      LIKE(UPPER(myExtPart), UPPER(JUSTEXT(lcFileName)))
>>      INSERT INTO crsTest VALUES (m.lcFileName)
>>   ENDIF
>>   lcFileName = SYS(2000,[*.*],1)
>>ENDDO
>>
>
>I can get all JPG files into cursor, but I'm afraid it may be slow. But since Filer and ADIR both returns weird results I don't have a choice. I also have to scratch all my code and start fresh, which is very upsetting, since I already spent few days in total working on this program... :(

Can you check the difference between times for that code and using ADIR()?
I don't have a folder with so much files to get a serious result.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform