>>>>>You can't use [*g*.*] as a mask. You always will get a whole folder. try even in command prompt (old DOS) window:
>>>>>DIR *g*.*
>>>>>What you want? A file that have G somewhere in the name?
>>>>
>>>>Yes, but not in the extension part. Anyway, I think I can always call this program with extension, so this problem becomes mute. But I was a bit surprised to see this behavior.
>>>
>>>get all jpeg files and after that use $ operator.
>>
>>Are you saying that this is invalid?
>>
>>
>>IF ADIR(laFiles, m.HomeImg + "*" + m.lcCheck + "*." + m.tcExt) >=1
>
>No, I'm saying first get all files to a table with sys(2000)
>
>after that search with
>
>loca for "g"$my_field
I have lots of files in the directory, why do I have to put all of them in the table? Why I can not use mask?
If it's not broken, fix it until it is.
My Blog