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't 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.