以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  datarow不是controleventargs的成员?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=56927)

--  作者:xiaoyongxg2
--  发布时间:2014/9/15 15:50:00
--  datarow不是controleventargs的成员?
下面的代码为何放在按钮控件里为什么会出错?应该怎么改一下?请老师指点
If e.DataRow("规格") = "3克" Then
   SystemReady=False
   e.DataRow("购进量") = e.DataRow("购进量")/100
   SystemReady=True
Else
If e.DataRow("规格") = "3克*10小袋" Then
   SystemReady=False
   e.DataRow("购进量") = e.DataRow("购进量")/10
   SystemReady=True
End If
End If

--  作者:有点甜
--  发布时间:2014/9/15 15:51:00
--  
e.DataRow 改成 Tables("表A").Current
--  作者:xiaoyongxg2
--  发布时间:2014/9/15 16:29:00
--  
甜老师你真好