以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  求助  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=92182)

--  作者:litongbo1986
--  发布时间:2016/10/28 9:54:00
--  求助
Select Case e.DataCol.name
    Case "保质天数"
        If e.DataRow.IsNull("保质天数") Then
            e.DataRow("到期日期")=Nothing
        Else
            Dim t As Date=e.DataRow("生产日期")
            e.DataRow("到期日期")=t + e.DataRow("保质天数")
        End If
End Select


这个代码那里错了   提示下面

.NET Framework 版本:2.0.50727.3655
Foxtable 版本:2016.7.29.1
错误所在事件:表,表C,DataColChanged
详细错误信息:
调用的目标发生了异常。
没有为 类型“Date” 和 类型“Integer” 定义运算符“+”。
--  作者:有点蓝
--  发布时间:2016/10/28 9:59:00
--  
e.DataRow("到期日期")=t.AddDays(e.DataRow("保质天数"))