` Printed Icetips Article

Icetips Article



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.



Printed November 21, 2024, 7:04 am
This article has been viewed/printed 35297 times.