Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
From
30/11/2006 16:29:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173721
Message ID:
01173893
Views:
11
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform