>>lcBadFiles = "" >>on error llBadFile = .t. >>lnFiles = adir( laFiles, "SubDirectory\*.dbf" ) >>for lnI = 1 to lnFiles >> llBadFile = .f. && always reset flag before testing next file >> use ( "SubDirectory\" + laFiles[ lnI, 1] ) >> if llBadFile >> lcBadFiles = lcBadFiles + laFiles[ lnI, 1] + chr(13)+chr(10) >> endif >>endfor >> >>if not empty( lcBadFiles ) >> messagebox( "Some Bad Files: " + lcBadFiles ) >>endif >>on error >>I agree, but that would just be something I would have put within the
IF llBadFile ELSE */ if not, then check for other data corruption stuff... ENDIFI was just giving a baseline on how to cycle through... As for the particulars of checking things like bad data, corrupt indexes, etc, the user would probably build off