是一个删除按钮的代码如下: if dbedit4.Text<>''then begin if messagebox(xzform.Handle,'确定要删除本条记录吗?','请确认',mb_okcancel)=idok then begin dmform.szunitet.Delete; end; end else application.MessageBox('没有记录可删除!','提示',mb_OK); 开始的时候是有用的,但过了几天再运行时,进行删除是谈出如下错误: Project xxx.exe raised exception class EAccessViolation with message "Acess violation at address 004681C7 in module 'xxx.exe'.Process stopped.Use step or Run to continue. 请问各位朋友怎样调试啊?
----------------------------------------------
-