Foxtable(狐表)用户栏目专家坐堂 → 请教老师如何点击某按钮后将A表的某列复制到B表的对应列中?


  共有2409人关注过本帖树形打印复制链接

主题:请教老师如何点击某按钮后将A表的某列复制到B表的对应列中?

帅哥哟,离线,有人找我吗?
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2019/9/25 22:40:00 [显示全部帖子]

帮助:
http://www.foxtable.com/webhelp/topics/2292.htm

稍微改一下:
Dim nma() As String = {"A1","A2","A3","A4"} 'A表数据来源列
Dim nmb() As String = {"B1","B2","B3","B4"} 'B表数据接收列
Dim r as Row = Tables("表A").Current
Dim dr As DataRow = DataTables("表B").AddNew
For i As Integer = 0 To nma.Length - 1
    dr(nmb(i)) = r(nma(i))
Next


[此贴子已经被作者于2019/9/25 22:40:39编辑过]

 回到顶部