You can shorten your code to
...
try
delete file (m.lcTempDir + laFiles[m.lnI,1])
catch
endtry
...
>>Remove 'loop' from 'catch'. Also I don't see where m.lcError is assigned a string value.
>
>Originally I just had try endtry without catch and it gave me the same error. So I added all these lines. Removing loop solved the problem. I commented out logging and reporting error, since I don't really need to see the error.
--sb--