>>>I think you should seriously consider VFP9. (Look who's talking...)
>>>
>>
>>It's not my decision to make. Anyway, looks like my program doesn't really work as it should for some reason. For w4e it returns w49... and it should not.
>>
>>>>You're too late to the game <g> Yes, I do if my mask is too short. I'm going to put some restrictions on the mask and also add try/catch functionality
>
>try:
>
>CREATE CURSOR crsFiles (FileNames M)
>lcFile = SYS(2000,[mask here])
>DO WHILE NOT EMPTY(lcFile)
> IF NOT EMPTY(lcFile)
> INSERT INTO crsFiles VALUES (m.lcFile)
> ENDIF
> lcFile = SYS(2000,[mask here],1)
>ENDDO
>
>
>not tested
I was thinking about something like this, but when I tried myDir + "*g*.*" it returned wrong file...
If it's not broken, fix it until it is.
My Blog