次の方法で共有


COUNT Function (FilterPageBuilder)

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

Count := FilterPageBuilder.COUNT

Return Value

Type: Integer

The number of filter controls in the current FilterPageBuilder object instance.

Example

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

This example requires that you create the following variables in the C/AL Globals window.

Variable name DataType SubType

varDateItem

Text

varCount

Integer

Date

varFilterPageBuilder

FilterPageBuilder

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’);

See Also

Reference

ADDFIELD Function
ADDFIELDNO Function
ADDRECORD Function
ADDRECORDREF Function
ADDTABLE Function
GETVIEW function (FilterPageBuilder)
SETVIEW Function
NAME Function (FilterPageBuilder)
RUNMODAL Function (FilterPageBuilder)