Dim d1 As Date = CurrentTable.Current("第1列")
Dim d2 As Date = CurrentTable.Current("第2列")
Dim ts As TimeSpan = d2 - d1
Dim sy As Byte = "是"
Dim sn As Byte = "否"
If e.DataCol.Name = "第1列" OrElse e.DataCol.Name = "第2列"
If e.DataRow.IsNull("第1列") = False And e.DataRow.IsNull("第2列") = False
e.DataRow("第3列") = ts.days
End If
End If
If e.DataCol.Name <> "第3列" AndAlso e.DataCol.IsNumeric
e.DataRow("是否超过30天") = sy
Else e.DataRow("是否超过30天") = sn
End IF
出错提示是在更新了日期后出现:
.NET Framework 版本:2.0.50727.3649
Foxtable 版本:2013.7.12.1
错误所在事件:
详细错误信息:
未将对象引用设置到对象的实例。