以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 勾选 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=28132) |
-- 作者:方沈 -- 发布时间:2013/1/19 22:10:00 -- 勾选 请问如何实现如下功能 当“故障处理”及“故障属性”有文字(不为空)时,完成状况才能勾选(逻辑列) 谢谢 |
-- 作者:卧美吻花 -- 发布时间:2013/1/19 22:14:00 -- 在DataColChanging事件中写入判断代码即可 |
-- 作者:yupoco -- 发布时间:2013/1/20 13:50:00 -- if e.datacol.name = "逻辑列名" then if e.datarow("逻辑列名") = false then if e.datarow("故障处理") is nothing or e.datarow("故障属性") is nothing then e.cancel = true end if end if end if
我也是菜鸟,不知道写的对不对,你试一试吧 |