|
|
|
|
|
- Enabling and disabling a filter
- Number of possible active filters
- Operating mode in OLE DB
<Source>.ActivateFilter (Function) In french: <Source>.ActiveFiltre
Not available with this kind of connection
Enables the filter that was previously created for the specified data file (view or query). This filter was created by <Source>.Filter and disabled by <Source>.DeactivateFilter. <Source>.ActivateFilter has no effect if no filter was declared. This function can be used with the data files, HFSQL views or queries.
// Declare the filter: select customers // between 20 and 60 years old Customer.Filter(Age_Customer, 20, 60) ... Customer.DeactivateFilter() // Disabled filter ... // Browse the data file with a filter on age // Process the customers who are between 20 and 60 years old // (ProcessCustomer2060 procedure) Customer.ActivateFilter() Customer.ReadFirst(Age_Customer) WHILE Customer.Found() = True ProcessCustomer2060() Customer.ReadNext(Age_Customer) END
Syntax
<Result> = <Source>.ActivateFilter()
<Result>: Boolean - True if the filter is enabled,
- False if an error occurred (file or item not found).
<Source>: Type corresponding to the specified source Name of data file, HFSQL view or query used. Remarks Enabling and disabling a filter Number of possible active filters A single filter can be enabled at a time for a specific data file.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|