Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease 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!
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, 7:06 am This article has been viewed 35298 times.
|
|