你说的是什么文件???用什么打开的??
use 还是 fopen()
如果是前者,可以自己写一个函数:
para dbfpth,dbfname
set talk off
dbfpth=allt(dbfpth)
dbfname=allt(dbfpth)+allt(dbfname)
errortxt=''
workspace=sele()
on error errortxt=allt(str(error()))+':'+allt(message())
use &dbfname
on error
if len(errortxt)>0
sele (workspace)
return errortxt
endif
return '0'
如果是后者,则可以根据fopen()的返回值判断。