根据 e.DataRow("主色墨_墨桶编号") 第一条 查找内容。只有
MessageBox.show("1")
才出来。
哪里出错了
.NET Framework 版本:2.0.50727.8825
Foxtable 版本:2018.3.9.1
错误所在事件:表,调制墨信息,DataColChanged
详细错误信息:
Exception has been thrown by the target of an invocation.
未找到类型“String”的公共成员“Lines”。
Case "主色墨_墨桶编号"
MessageBox.show("1")
Dim ls As List (of String) = e.DataRow("主色墨_墨桶编号").Lines
MessageBox.show("4")
If e.newvalue IsNot Nothing Then
MessageBox.show("2")
Dim dr As DataRow
dr = DataTables("原色墨信息").Find("[墨桶编号] = ls(0)")
MessageBox.show("3")
If dr Is Nothing Then
MessageBox.Show("<原色墨信息>中无此记录","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
e.DataRow("主色墨_品名") = dr("品名")