以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 在同一个关联表单击按键如何复制? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=163035) |
-- 作者:lin98 -- 发布时间:2021/4/21 15:20:00 -- 在同一个关联表单击按键如何复制? 在同一个关联表单击按键如何复制? 下面代码是不同表的复制。
Dim Cols1() As String = {"来源列一","来源列二","来源列三"} Dim Cols2() As String = {"接收列一","接收列二","接收列三"} For Each dr1 As DataRow In DataTables("表A").Select("[金额] > 100") Dim dr2 As DataRow = DataTables("表B").AddNew() For i As Integer = 0 To Cols1.Length -1 dr2(Cols2(i)) = dr1(Cols1(i)) Next Next |
-- 作者:有点蓝 -- 发布时间:2021/4/21 15:22:00 -- 没看懂,截图说明一下 |