>lnFiles = ADIR(laDir, ADDBS(mRutaXML)+'*.xml') >You're right, the syntax actually works, but I find it pretty ugly. Anyway, it won't work with spaces in a directory name. This is always safe:
lnFiles = ADIR(laDir,( mRutaXML+'\*.xml')) if lnFiles>0 && laDir won't exist if there are no files * Do something Endif