ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This page concerns the 25 + version of WINDEV, WEBDEV and WINDEV Mobile. Update your version.
This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Enabling and disabling a filter
  • Number of possible active filters
  • Browse
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Temporarily disables the filter on a data file (view or query). This filter was created by <Source>.Filter. <Source>.DeactivateFilter has no effect if no filter was declared.
Example
// Déclaration du filtre : sélection des clients
// qui ont entre 20 et 60 ans
Client.Filtre(Age_Client, 20, 60)
...
Client.DésactiveFiltre() // Filtre désactivé
...
// Parcours du fichier de données avec filtre sur l'âge
// Traitement des clients qui ont entre 20 et 60 ans
// (procédure TraiteClient2060)
Client.ActiveFiltre()
Client.LitPremier(Age_Client)
WHILE Client.Trouve() = True
	TraiteClient2060()
	Client.LitSuivant(Age_Client)
END
Syntax
<Result> = <Source>.DeactivateFilter()
<Result>: Boolean
  • True if the filter is disabled,
  • False if an error occurred (data file or item not found).
<Source>: Type corresponding to the specified source
Name of the data file, view or query used.
Remarks

Enabling and disabling a filter

The filter is enabled once it has been declared (<Source>.Filter). A filter disabled by <Source>.DeactivateFilter can be re-enabled by <Source>.ActivateFilter.
Note: When calling function <Source>.Close, the filter activated by function HFilter function is automatically deleted.

Number of possible active filters

A single filter can be enabled at a time for a specific data file.

Browse

The modifications performed by <Source>.Filter and <Source>.DeactivateFilter are taken into account when using <Source>.ReadFirst/<Source>.First, <Source>.ReadLast/<Source>.Last or <Source>.ReadSeekFirst/<Source>.ReadSeekLast.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help