系统出错信息如何屏蔽?
当字段为不许为空(not null),却因为没有输入值而报错。我在datawin的dberror和itemerror中分别已写了
dberror事件:
MessageBox('错误提示','请插入关键字段')
return 1
itemerror事件:
MessageBox('错误提示','数据类型不匹配!')
return 1
但是保存出错时还是有英文的系统报错,类似如下:
The column area in table xxdxyw does not allow null values.
No changes made to database.
INSERT INTO xxdxyw ( telcapacity ) VALUES ( 'dsfaf' )
如何屏蔽这些报错呢?