Foxtable(狐表)用户栏目专家坐堂 → 字符串包含筛选


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

主题:字符串包含筛选

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


加好友 发短信
等级:九尾狐 帖子:2649 积分:19390 威望:0 精华:1 注册:2008/9/12 9:19:00
  发帖心情 Post By:2012/12/22 18:44:00 [只看该作者]

以下是引用lin_hailun在2012-12-22 16:31:00的发言:
 
Dim idxs As String = ""
Dim s1 As String = e.Form.Controls("文件名称").Value
If s1 > "" Then
   
Dim arys() As String = s1.Split(",")    '注意逗号   小林写的空格
    For Each r As Row In Tables("表A").rows
        Dim idx As Integer = r("文件名称").LastIndexOf("\")
        For Each ary As String In arys
            If r("文件名称").Substring(idx) Like "*" & ary & "*" Then
                idxs += r("_identify") & ","
            End If
        Next
    Next
    If idxs > "" then
Tables("表A").Filter = "_Identify in (" & idxs.Trim(",") & ")"
End If

很满意


 回到顶部
总数 24 1 2 3 下一页