| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1709 人关注过本帖
标题:问下SET FILTER TO是干什么的
只看楼主 加入收藏
Males
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2006-5-21
收藏
 问题点数:0 回复次数:6 
问下SET FILTER TO是干什么的
二级教程上翻遍了竟然没有!
搜索更多相关主题的帖子: FILTER SET 教程 
2006-06-07 13:16
baichuan
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:37
帖 子:953
专家分:589
注 册:2006-3-13
收藏
得分:0 

Specifies a condition that records in the current table must meet to be accessible.

不会在VFP中help一下?

2006-06-07 13:19
Males
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2006-5-21
收藏
得分:0 
我装的VFP6.0没有HELP文件
2006-06-07 13:20
baichuan
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:37
帖 子:953
专家分:589
注 册:2006-3-13
收藏
得分:0 

呵呵!那你就装个全的呗!
我这儿的是英文版,所以给你的是英文的帮助!自己凑合着看吧!

Specifies a condition that records in the current table must meet to be accessible.
Syntax

SET FILTER TO [lExpression]

Arguments

lExpression Specifies the condition that records must satisfy.

If the current table is indexed on a field or fields specified in lExpression, Visual FoxPro Rushmore technology will optimize queries based on the field or fields.

Remarks

Once SET FILTER is issued, only the records that satisfy the condition specified by the logical expression lExpression are available in the table. All commands that access the table respect the SET FILTER condition. A separate filter can be set for every open table.

The condition specified by SET FILTER isn抰 evaluated until the record pointer is moved in the table.

Issuing SET FILTER TO without lExpression turns off the filter for the current table.

SELECT - SQL does not respect the current filter condition.


2006-06-07 13:22
blueblood
Rank: 2
等 级:新手上路
威 望:4
帖 子:135
专家分:0
注 册:2006-4-2
收藏
得分:0 
通俗地说,使用了SET FILTER TO lExpression,在许多含有for短语的命令中,就可省略FOR短语了!
2006-06-07 13:36
Males
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2006-5-21
收藏
得分:0 

英文不太好啊 哪里有中文的帮助文档

2006-06-07 13:43
wzxc
Rank: 9Rank: 9Rank: 9
来 自:齐鲁大地
等 级:贵宾
威 望:39
帖 子:985
专家分:1296
注 册:2006-4-25
收藏
得分:0 
SET FILTER TO [lExpression]

参数
lExpression

指定记录必须满足的条件。
如果当前表在 lExpression 中指定的一个或多个字段上建立了索引,Visual FoxPro Rushmore 技术会优化基于这个或这些字段的查询。

说明

如果使用 set filter 命令,则表中只有满足逻辑表达式 lExpression 指定的条件的记录才可以被访问。所有访问该表的命令都必须遵守 SET FILTER 指定的条件。对于每个打开的表,都可以设置单独的筛选条件。
只有当记录指针在表中移动时,才计算由 SET FILTER 指定的条件。
不带 lExpression 发出 SET FILTER TO 命令将关闭当前表的选择器。
注意:SELECT - SQL 不遵守当前的筛选条件。

认真看书学习,弄通Fox主义。
2006-06-07 14:14
快速回复:问下SET FILTER TO是干什么的
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025524 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved