Foxtable(狐表)用户栏目专家坐堂 → 如何做出可选择地删除多行、多表按钮?


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

主题:如何做出可选择地删除多行、多表按钮?

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/10/13 17:35:00 [显示全部帖子]

1、

 

Dim Val As String = ""
If InputValue(Val, "提示", "请输入字符:") Then
    Dim t1 As Table = Tables("A1")
    Dim t3 As Table = Tables("A3")
    For i As Integer = t1.Rows.count-1 To 0 Step -1
        Dim r As Row = t1.Rows(i)
        If r("ah").contains(val) Then
            Dim fdr As DataRow = t3.DataTable.find("lsh = '" & r("lsh") & "' and dh = '" & r("ah") & "'"
            If fdr IsNot Nothing Then
                r.delete
                fdr.delete
            End If
        End If
    Next
    For i As Integer = t3.Rows.count-1 To 0 Step -1
        Dim r As Row = t3.Rows(i)
        If r("dh").contains(val) Then
            r.delete
        End If
    Next
   
End If

 

 

2、

 

Dim Val As String = ""
If InputValue(Val, "提示", "请输入字符:") Then
    Dim t1 As Table = Tables("A1")
    Dim t3 As Table = Tables("A3")
    val = val.Replace(",", "','")
    t1.DataTable.DeleteFor("lsh in ('" & val & "')")
    t3.DataTable.DeleteFor("lsh in ('" & val & "')")
   
End If

 


 回到顶部