>Hi Elmer:
>
>Thankyou for taking the time to respond. I will study the code and probably will have more questions for you, if thats ok. Thanks again.
Hi Henry,
I just noticed that the code that I supplied contains a call to cre8dir() which is one of my UDF's that I did not supply. Basically it is a function that checks for the existance of a specified folder and if it does not exist, it creates it and returns .t. if the folder exists or was created. I can let you have this function if you want but it uses foxtools.fll and I did not want to create even more dependencies for you.
If you are sure that the folder exists, you can remove the call to
cre8dir(m.lcInFolder) and it will work fine or you may change the code to return .f. if !directory(m.lcInFolder)
To remove the call to cre8dir() change the code as follows:
if !empty(m.lcInFolder)
if !directory(m.lcInFolder)
return .f.
endif
lcFolder = m.lcInFolder
endif