PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Creating several filters and enabling one filter after the other
HDeactivateFilter (Example)
Example: Creating several filters and enabling one filter after the other
WINDEVWEBDEV - Server codeWindows MobileJavaPHPAjaxUser code (UMC)HFSQLHFSQL Client/Server Two filters are created: a filter on the age of the customer and a filter on the zip code of the customer. The filters are enabled and disabled according to the processes run.
// Definition of the different filters
HFilter(CUSTOMER, AGE_Customer, 50, 75)
HFilter(CUSTOMER, ZIPCODE, 34000, 34000)
 
// Enables the filter on the age
HActivateFilter(CUSTOMER, AGE_Customer)
HReadFirst(CUSTOMER, AGE_Customer)
WHILE HOut() = False
// Procedure used to send a standard fax to the customers
SendFax(50,75)
HReadNext(CUSTOMER, AGE_Customer)
END
 
// Disables the filter on the age
HDeactivateFilter(CUSTOMER, AGE_Customer)
 
// Enables the filter on the zip code
HActivateFilter(CUSTOMER, ZIPCODE)
 
HReadFirst(CUSTOMER, ZIPCODE)
WHILE HOut() = False
SendFaxZip(ZIPCODE)
HReadNext(CUSTOMER, ZIPCODE)
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment