Foxtable(狐表)用户栏目专家坐堂 → 模糊查找 窗口 用不了,是哪里出错


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

主题:模糊查找 窗口 用不了,是哪里出错

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


加好友 发短信
等级:幼狐 帖子:60 积分:597 威望:0 精华:0 注册:2016/10/24 17:35:00
模糊查找 窗口 用不了,是哪里出错  发帖心情 Post By:2022/2/21 21:37:00 [显示全部帖子]

Dim str As String=e.Form.Controls("TextBox1").BindingField

Dim t As Table = Tables("合同信息总表")
If str = "" Then
    t.Filter = ""
Else
    Dim ary() As String = str.split(" ")
    Dim idxs As String = "-1,"
    For Each r As DataRow In t.DataTable.dataRows
        Dim count As Integer = 0
        For Each s As String In ary
            For Each c As Col In t.Cols
                If Cstr(r(c.name)).Contains(s) Then
                    count += 1
                    Exit For
                End If
            Next
        Next
        If count = ary.Length Then
            idxs &= r("_Identify") & ","
        End If
    Next
    t.Filter = "_Identify in (" & idxs.Trim(",") & ")"
End If

 回到顶部