我要在原始列类似于114.3/114.3/88.9/88.9/60.3的字符串找出最大的数字,填写在“最大”列
If e.DataCol.Name = "原始" Then
If e.DataRow.IsNull("原始") Then
e.DataRow("最大") = Nothing
Else
Dim Multi As String = e.NewValue
If Multi.Contains("/") Then
Dim Values() As String = Multi.split("/")
Dim zdz() As Double
For i As Integer = 0 To Values.length - 1
zdz(i) = Values(i)
Next
e.DataRow("最大") = zdz.max
End If
End If
End If
一直提示:
.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2022.1.30.2
错误所在事件:表,表A, DataColChanged
详细错误信息:
调用的目标发生了异常。
未将对象引用设置到对象的实例。
[此贴子已经被作者于2022/6/28 15:24:34编辑过]