以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 数据筛选的格式应该怎么写? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=162383) |
-- 作者:jinzhengbe -- 发布时间:2021/4/13 11:24:00 -- 数据筛选的格式应该怎么写? DataTables("baobiao").DataRows.Clear Dim da =Tables("wuliu").Current("fadata") Dim Cols1() As String = {"fadata","uid","kg"} Dim Cols2() As String = {"fadata","uid","kg"} For Each dr1 As DataRow In DataTables("wuliu").Select("fadata" & "=" & da) Dim dr2 As DataRow = DataTables("baobiao").AddNew() For i As Integer = 0 To Cols1.Length -1 dr2(Cols2(i)) = dr1(Cols1(i)) Next Next DataTables("baobiao").Save 请问红色的部分应该怎么改? 非常感谢,好久不用了,生疏了~~ 错误提示为 System.String ? System.Int32?? \'=\' 不能执行,、、
[此贴子已经被作者于2021/4/13 11:25:30编辑过]
|
-- 作者:有点蓝 -- 发布时间:2021/4/13 12:01:00 -- For Each dr1 As DataRow In DataTables("wuliu").Select("fadata=\'" & da & "\'") |
-- 作者:jinzhengbe -- 发布时间:2021/4/13 12:15:00 -- 非常非常 感谢~~ |