If e.DataRow.isnull("销售订单号") = False Then
Dim dr As DataRow = DataTables("销售单").find("销售单号 = '" & e.DataRow("销售订单号") & "' And 销售单行号 = '" & e.DataRow("SO行号") & "' And 产品代号 = '" & e.DataRow("产品型号") & "'")
If dr IsNot Nothing Then
dr("交货数量") = dr("交货数量") - e.DataRow("数量个")
End If
End If
上述代码执行时出现如下提示:
.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2021.12.4.11
错误所在事件:表,组装送货单,DataRowDeleting
详细错误信息:
调用的目标发生了异常。
无法在 System.Int16 和 System.String 上执行“=”操作。
请问要怎样修改代码?