以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 目录树单击筛选table (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=176255) |
||||
-- 作者:2425004926 -- 发布时间:2022/4/6 13:38:00 -- 目录树单击筛选table
老师帮忙看一下,单击节点后筛选为何不成功,以下是代码 Dim qts As String() = {"\'","\'","\'","\'","\'"} \'指定将各列的值括起来的符号,这里都是字符型,所以都是单引号,如果是时间是#,如果是数字则空-----和上面的数组个数相等 MessageBox.Show(e.node.FullPath) Dim rts() As String = e.node.FullPath.Split("\\") Dim val As String = "" For i As Integer = 0 To rts.length - 1 If val > "" Then val = val & " And " End If val = val & "[" & nms(i) & "]" & " = " & qts(i) & rts(i) & qts(i) \'是字符型用单引号,是时间用#,是数字则空 Next MessageBox.Show(val) Tables(e.Form.name & "_table1").Filter = "" Tables(e.Form.name & "_table1").Filter = val |
||||
-- 作者:2425004926 -- 发布时间:2022/4/6 14:01:00 -- 已解决,上面代码没有问题,多写了单击代码 [此贴子已经被作者于2022/4/6 14:02:17编辑过]
|