以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 不在表中用datacolchanged 属性控制,怎么通过窗口按钮来判断 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=159263) |
-- 作者:lianghanyu -- 发布时间:2020/12/19 10:44:00 -- 不在表中用datacolchanged 属性控制,怎么通过窗口按钮来判断 Dim dr As DataRow = e.DataRow
以上语句,在表属性中可以实现我想要的功能 .
但是我在窗口中,做了一个按钮,按钮单击代码把上边的代码写上去,提示:datarow 不是 controleventargs 成员
请问,我应该怎么样修改按钮的代码呢? |
-- 作者:有点蓝 -- 发布时间:2020/12/19 10:52:00 -- 不同的事件有不同的e参数:http://www.foxtable.com/webhelp/topics/0604.htm dim r as row = tables("xx表").current if r isnot nothing then If r.IsNull("设计师") OrElse r.IsNull("项目编号") OrElse r.IsNull("工作内容") Then MessageBox.Show("设计师,项目编号,工作内容不能为空") End If end if
|