>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... :(