为什么数据窗口存储数据时弹出错误提示
这是我的chick事件代码:
String ls_xb_id
Long ll_count
dw_1.accepttext()
If dw_1.ModifiedCount() >0 THEN
//校验录入数据的正确与否
ls_xb_id = dw_1.object.xb_id[1]
If ls_xb_id ="" or isnull(ls_xb_id) Then
Messagebox("系统提示","系别编号不可以为空")
dw_1.setfocus()
dw_1.setcolumn(1)
return
End If
If is_lx = "new" Then
ll_count = w_xbsz.dw_1.rowcount()
ll_count = w_xbsz.dw_1.find("xb_id='"+ls_xb_id+"'",1,ll_count)
If ll_count > 0 or ls_xb_id='1' Then
Messagebox("系统提示","该系别编号已经存在!")
dw_1.setfocus()
dw_1.setcolumn(1)
return
End If
ll_count = w_xbsz.dw_1.insertrow(0)
w_xbsz.dw_1.scrolltorow(ll_count)
else
ll_count = w_xbsz.dw_1.getrow()
end if
w_xbsz.dw_1.object.data[ll_count] = dw_1.object.data[1]
If w_xbsz.dw_1.update()> 0 Then
commit;
close(parent)
else
rollback;
messagebox("系统提示","保存失败!请检验数据的正确性")
dw_1.setfocus()
dw_1.setcolumn(1)
end if
End If
存储是老弹出:
Application terminated
error: type mismatch accessing external object property data at line 27
in chick envet of object cb_2 of w_bjsz_new