try
if (trim(dbedit8.Text)='') then
raise Exception.create('申请人不能为空,请重新输入');
table1.post ;
except
on e:Exception do
begin
application.MessageBox(e.message)
end
end;
try
if (trim(dbedit8.Text)='') then
application.MessageBox('申请人不能为空,请重新输入','输入错误',mb_ok)
else
table1.Post;
except
raise Exception.create('some bad stuff happen');
end;
怎样怎么不行呀,还是不能保存数据
try
if (trim(dbedit8.Text)='') then
application.MessageBox('申请人不能为空,请重新输入','输入错误',mb_ok)
else
raise Ebad.create('some bad stuff happen');
except
table1.Post;
end;