Foxtable(狐表)用户栏目专家坐堂 → 复制代码的区别


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

主题:复制代码的区别

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:111411 积分:567125 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/8/9 22:40:00 [显示全部帖子]

看看:http://www.foxtable.com/webhelp/topics/2225.htm

试试

Dim t As Table = Tables("表A1")
Dim t1 As Table = Tables("表A")
Dim lst As new List(of String)
For Each dc As DataCol In DataTables("表A1").datacols
    If  DataTables("表A").DataCols.Contains(dc.name) AndAlso  dc.Expression = ""  Then
        lst.add(dc.name)
    End If
Next
t1.StopRedraw
Dim r,r1 As Row
For i As Integer = t.TopPosition To t.BottomPosition
    r = t1.AddNew()
    r1 = t.Rows(i)
    For Each s As String In lst
        r(s) =  r1(s)
    Next
Next
t1.ResumeRedraw

 回到顶部