以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- Lines (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=118238) |
-- 作者:恒隆君 -- 发布时间:2018/4/27 14:01:00 -- Lines 根据 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("品名") |
-- 作者:有点甜 -- 发布时间:2018/4/27 14:37:00 -- Dim ls As List (of String) = e.DataRow.Lines("主色墨_墨桶编号")
http://www.foxtable.com/webhelp/scr/2717.htm
|
-- 作者:恒隆君 -- 发布时间:2018/4/27 17:10:00 -- dim ls as New list (of string) dim ls as list (of string) 这两行代码作用有什么区别?
|
-- 作者:有点甜 -- 发布时间:2018/4/27 17:19:00 -- new之后可以直接add
不new的,不能直接add,必须被赋值以后,才能使用。 |