Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
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:
01173897
Views:
9
>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
>
There are 13173 jpg files in that folder and the total time took 30 sec.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform