>Hello All, >I am receiveing files that do not have the dbf extension. Is there a way to check to see if a file is a foxpro table or just a txt file? >
Sandy,
One way is to try to use the file and trap for an error:
local lcOldError, llUseError
lcOldError = on("error")
llUseError = .f.
onerror llUseError = .t.
use"myFile.txt"in0onerror &lcOldError
if llUseError
* unable to open file, not a tableelse * file is a valid tableendif