当前位置: 代码迷 >> 综合 >> 技巧(1)- 数据窗口的错误提示不显示(item '' does not pass validation test!)
  详细解决方案

技巧(1)- 数据窗口的错误提示不显示(item '' does not pass validation test!)

热度:49   发布时间:2023-12-08 12:36:48.0

数据窗口的错误提示不显示(item '' does not pass validation test!)

在ItemChanged中Return codes: 

0 - (Default) Accept the data value
1 - Reject the data value and do not allow focus to change
2 - Reject the data value but allow the focus to change

messagebox()
return 1

在ItemError中Return codes: 
0 - (Default) Reject the data value and show an error message box. 
1 - Reject the data value with no message box.
2 - Accept the data value.
3 - Reject the data value but allow focus to change.

return 1

  相关解决方案