- Type: Record The record to which you want to copy filters.
- Type: Record The record from which you want to copy filters.
This function is used to apply the filters defined for one record to another record. The filters are used as a basis for counting, searching, calculating, or a similar operation.
This example requires that you create the following variables.
// Set filters on fields in a Customer record Customer1.SETFILTER("No.", '<1000'); Customer1.SETRANGE("Credit Limit (LCY)", 10000, 20000); Customer1.MARKEDONLY(TRUE); // Apply filters to another record Customer2.COPYFILTERS(Customer1); Count := Customer2.COUNT;
The filters defined for Customer1 are copied and applied to Customer2. This affects the result returned by the COUNT Function (Record).