>>>>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, this is valid, but if you have
m.tcExt = [*]
You will get all the files that have m.lcCheck in their names AND extension.
But if you have this:
IF ADIR(laFiles, m.HomeImg + "*G*.J*") >=1
You will get all the files that will have [G] in their names and their extension begins with [J]
If you have this:
IF ADIR(laFiles, m.HomeImg + "*G*.*J*") >=1
You will get all the files that will have [G] in their names and their extension have [J] somewhere.
(again all of these cases are not properly tested).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.