以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 复制表 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=29685) |
-- 作者:张子俊 -- 发布时间:2013/3/11 16:49:00 -- 复制表 如何在窗口中把明细表复制到临吋表中 |
-- 作者:狐狸爸爸 -- 发布时间:2013/3/11 16:50:00 -- http://www.foxtable.com/help/topics/0680.htm http://www.foxtable.com/help/topics/1533.htm
|
-- 作者:狐狸爸爸 -- 发布时间:2013/3/11 16:52:00 -- Dim Cols1() As String = {"来源列一","来源列二","来源列三"} Dim Cols2() As String = {"接收列一","接收列二","接收列三"} For Each dr1 As Row In Tables("表A.表B").Rows Dim dr2 As DataRow = DataTables("表C").AddNew() For i As Integer = 0 To Cols1.Length -1 dr2(Cols2(i)) = dr1(Cols1(i)) Next Next |