>>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,[*.*])
>>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.