■■■数据库异常的处理?(50分)

S

smallwy

Unregistered / Unconfirmed
GUEST, unregistred user!
create table student.db
(uid smallint not null,
name varchar(6) not null,
primary key(uid)
)
在数据数据时故意不输入name,程序发生错误,field name hava must a value
在TableStudent.onposterror编写代码:
if E is TdatabaserError then
showmessage('The Data Error!');
它不执行上面的代码,还是跳出刚才的错误信息,该怎么办?
 
if E is EdatabaserError then
showmessage('The Data Error!');
 
顶部