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” 定义运算符“+”。
|