Foxtable(狐表)用户栏目专家坐堂 → [求助][分享]筛选


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

主题:[求助][分享]筛选

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:111431 积分:567231 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/1/8 20:25:00 [显示全部帖子]

1、2:txt_TextChanged函数

Dim sender = args(0)
Dim e = args(1)
Dim _flex = sender.parent
Dim _row = _flex.rows.fixed-1
Dim _col = _flex.Col

_flex(_row, _col) = sender.Text
Dim filter As String = "1=1"
For i As Integer = 0 To _flex.Cols.count-1
    Dim str As String = _flex(_row, i)
    If str > "" Then
        For Each s As String  In str.Split("*")
            filter &= " and convert(" & _flex.Cols(i).name & ",'System.String') Like '%" & s & "%'"
        Next
    End If
Next
Dim t As Table = Tables(_flex.name)
t.filter = filter

3、看懂afteropenproject事件代码,自己搬到窗口


 回到顶部