以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 自定义函数 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=126010) |
||||
-- 作者:kaituozhe -- 发布时间:2018/10/12 9:41:00 -- 自定义函数 在例子中自定义了以下函数,在表B中使用该函数,提示错误: Dim dr As DataRow = DataTables("表A").find("第一列 = \'" & Args(0) & "\'")
应该怎么修改 .NET Framework 版本:2.0.50727.8935
|
||||
-- 作者:有点甜 -- 发布时间:2018/10/12 9:44:00 -- Dim dr As DataRow = DataTables("表A").find("第一列 = \'" & Args(0) & "\'") Dim str As String = "" If dr IsNot Nothing Then str = dr("第二列") End If Return str |
||||
-- 作者:kaituozhe -- 发布时间:2018/10/12 10:15:00 -- Dim dr As DataRow = DataTables("表A").find("第一列 = \'" & Args(0) & "\'and 第三列 = \'" & Args(1) & "\'and 第四列 = \'" & Args(2) & "\'and 第五列 = \'" & Args(3) & "\'") 把函数修改如上,使用函数如下,由于参数较多,使用黄色部分定义条件,提示错误,该怎么修改?
Dim filter As String = "e.DataRow("第一列"),e.DataRow("第三列"),e.DataRow("第四列"),e.DataRow("第五列")" Select Case e.DataCol.name |
||||
-- 作者:有点甜 -- 发布时间:2018/10/12 10:33:00 -- Dim dr As DataRow = DataTables("表A").find(args(0))
把函数修改如上,使用函数如下,由于参数较多,使用黄色部分定义条件,提示错误,该怎么修改?
Dim filter As String = "第一列 = \'" & e.DataRow("第一列") & "\'and 第三列 = \'" & e.DataRow("第三列") & "\'" |