>>>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
If it's not broken, fix it until it is.
My Blog