FilterPageBuilder.Count() Method

Version: Available or changed with runtime version 1.0.

Gets the number of filter controls that are specified in the FilterPageBuilder object instance.

Syntax

Count :=   FilterPageBuilder.Count()

Note

This method can be invoked using property access syntax.

Parameters

FilterPageBuilder
 Type: FilterPageBuilder
An instance of the FilterPageBuilder data type.

Return Value

Count
 Type: Integer
The number of filter controls in the current FilterPageBuilder object instance.

Example

The following example uses the COUNT method on a filter page object that includes a two filter controls for the Date system table.

var
    varDateItem: Text[30];  
    varCount: Integer;  
    varFilterPageBuilder: FilterPageBuilder;

begin 
    varDateItem := 'Date record';  
    varFilterPageBuilder.AddTable(varDateItem + ' 1',DATABASE::Date);  
    varFilterPageBuilder.AddTable(varDateItem + ' 2',DATABASE::Date);  
    varCount := varFilterPageBuilder.Count;  
    if varCount <> 2 then   
      Error('There should be two controls in varFilterPageBuilder');
    varFilterPageBuilder.RunModal();  
end; 

See Also

FilterPageBuilder Data Type
Creating Filter Pages for Tables
Getting Started with AL
Developing Extensions