Foxtable(狐表)用户栏目专家坐堂 → 自动复制行


  共有2295人关注过本帖平板打印复制链接

主题:自动复制行

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/4/12 8:35:00 [只看该作者]

If e.DataCol.Name = "性别"
    Dim s As String
    Select Case e.DataRow("性别")
        Case "男"
            s = "表B"
        Case "女"
            s = "表C"
        Case "人妖"
            s = "表D"
        Case Else
            Return
    End Select
    Dim dr As DataRow = DataTables(s).AddNew
    For Each dc As DataCol In DataTables(s).DataCols
        dr(dc.Name) = e.DataRow(dc.Name)
    Next
End If

 回到顶部