Foxtable(狐表)用户栏目专家坐堂 → 如何增加条件问题


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

主题:如何增加条件问题

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


加好友 发短信
等级:六尾狐 帖子:1360 积分:9034 威望:0 精华:0 注册:2020/11/4 22:15:00
如何增加条件问题  发帖心情 Post By:2023/11/6 18:30:00 [只看该作者]

Dim dr As Row = Tables("登记窗口_Table1").Current '
If dr Is Nothing Then

Else
    Dim r As Row = Tables("引用窗口_Table1").Current '

'Dim r As DataRow In DataTables("引用窗口_Table1").Selec-t("[选中] = true ")'

    Dim Cols1() As String = {"姓名", "代号"} '
    Dim Cols2() As String = {"部门", "下属"} '
    For i As Integer = 0 To Cols1.Length - 1
        dr(Cols2(i)) = r(Cols1(i))
    Next
End If

需求:如何加上条件,选中列选中后执行?

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110579 积分:562791 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2023/11/6 20:37:00 [只看该作者]

Dim dr As Row = Tables("登记窗口_Table1").Current '
If dr Is Nothing Then

Else
    Dim r As Row = Tables("引用窗口_Table1").Current '

for each r2 As DataRow In DataTables("引用窗口_Table1").Select("[选中] = true ")'

    Dim Cols1() As String = {"姓名", "代号"} '
    Dim Cols2() As String = {"部门", "下属"} '
    For i As Integer = 0 To Cols1.Length - 1
        r2(Cols2(i)) = r(Cols1(i))
    Next
next
End If

 回到顶部