以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]请教如何将选定复选行复制到新增入仓单? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=175392) |
-- 作者:foxtforme -- 发布时间:2022/3/2 23:22:00 -- [求助]请教如何将选定复选行复制到新增入仓单? |
-- 作者:有点蓝 -- 发布时间:2022/3/3 9:27:00 -- 获取勾选的行:http://www.foxtable.com/webhelp/topics/1776.htm 大概这样 Dim Cols1() As String = {"来源列一","来源列二","来源列三"}
Dim Cols2() As String = {"接收列一","接收列二","接收列三"} For Each dr1 As Row In Tables("表A").GetCheckedRows Dim dr2 As DataRow = DataTables("表B").AddNew() For i As Integer = 0 To Cols1.Length -1 dr2(Cols2(i)) = dr1(Cols1(i)) Next Next |
-- 作者:foxtforme -- 发布时间:2022/3/5 0:15:00 -- 谢谢老师!! |