` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 May 5, 2024, 7:55 pm
This article has been viewed 35114 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: