以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  加载表的条件是_Identify集合,的问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=187782)

--  作者:zhangjian222200
--  发布时间:2023/8/10 20:35:00
--  加载表的条件是_Identify集合,的问题
_Identify放在一个集合中

加载表的时候,每次加载集合中的连续5行

这个代码怎么写?

--  作者:有点蓝
--  发布时间:2023/8/10 20:43:00
--  
比如第五到第十行

dim filter as string = "[_Identify] >= " & 集合(5) & " and [_Identify] <=" & 集合(9)

--  作者:zhangjian222200
--  发布时间:2023/8/10 21:07:00
--  
由于集合里的_Identify,不是连续的
下面这样写,应该找不到任何行吧

dim filter as string = "[
_Identify] = " & 集合(0) & " and [_Identify] =" & 集合(1) &” and [_Identify] =" & 集合(2) &” and [_Identify] =" & 集合(3) &” and ******
[此贴子已经被作者于2023/8/10 21:11:54编辑过]

--  作者:有点蓝
--  发布时间:2023/8/10 21:22:00
--  
如果集合元素是按顺序排的肯定可以使用2楼的方法。不然就使用3楼的方法,不过要把and改为or
--  作者:zhangjian222200
--  发布时间:2023/8/10 21:52:00
--  
ft里,使用3楼代码,设置了外部数据表的过滤条件。

加载多个指定的、不连续的_Identify行。

用or,就可以。