` Set filter once for several tabs (Dennis Evans ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Set filter once for several tabs
2000-04-21 -- Dennis Evans
 
The simplest way I have found is to derive the BrowseClass and add a method, call it SetAllFilters or something. Call that method in the ThisWindow.Init close to the end, priority 8500 or so just after all the sort orders and range limits etc.. have been added. The prototype for the new method would be something like, SetAllFilter( *string FitlerCriteria ) add two local variables to the method Count byte Location byte the method code would be Location = pointer(Self.Sort) loop Count = 1 to records(Self.Sort) Self.SetSort(Count) Self.SetFilter(FilterCriteria) end Self.SetSort(Location) if done occasionally just use the IDE, if the method is used on several browses, derive the class in an external file.


Today is November 21, 2024, 3:42 am
This article has been viewed 35297 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: