PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Enabling and disabling a filter
  • Number of possible active filters
  • Browse
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Temporarily disables the filter on a data file (view or query). This filter was created by HFilter. HDeactivateFilter has no effect if no filter was declared.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
// Declare the filter: selecting the customers
// who are between 20 and 60 years old
HFilter(CUSTOMER, AGE_Customer, 20, 60)
...
HDeactivateFilter(CUSTOMER) // Disabled filter
...
// Browse the data file with a filter on age
// Process the customers who are between 20 and 60 years old
// (ProcessCustomer2060 procedure)
HActivateFilter(CUSTOMER)
HReadFirst(CUSTOMER, AGE_Customer)
WHILE HFound(CUSTOMER) = True
ProcessCustomer2060()
HReadNext(CUSTOMER, AGE_Customer)
END
Syntax
<Result> = HDeactivateFilter([<Data file>])
<Result>: Boolean
  • True if the filter is disabled,
  • False if an error occurred (data file or item not found).
<Data file>: Optional character string (with or without quotes)
Name of data file, view or query used. If this parameter is not specified, HDeactivateFilter handles the last data file used by the last function for HFSQL management (starting with the letter H).
Remarks

Enabling and disabling a filter

The filter is enabled once it has been declared (HFilter). A filter disabled by HDeactivateFilter can be re-enabled by HActivateFilter.
Remark: During the call to HClose, the filter enabled by HFilter is automatically deleted.

Number of possible active filters

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

Browse

The modifications performed by HFilter and HDeactivateFilter are taken into account when using HReadFirst/HFirst, HReadLast/HLast or HReadSeekFirst/HReadSeekLast.
Component : wd250hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Exemplo
HDeactivateFilter(cliente)
SWITCH COMBO_ESCOLHA
CASE 1
TABLE_cliente..BrowsedItem = cliente.clienteID..Name
CASE 2
TABLE_cliente..BrowsedItem = cliente.nome..Name
CASE 3
TABLE_cliente..BrowsedItem = cliente.email..Name
OTHER CASE
END
TableDisplay(TABLE_cliente,taStart)
//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-tabela-007-alterar-ordem.html
De matos AMARILDO
04 Feb. 2016