Variant.IsFilterPageBuilder() Method
Version: Available or changed with runtime version 1.0.
Indicates whether an AL variant contains a FilterPageBuilder variable.
Syntax
Ok := Variant.IsFilterPageBuilder()
Note
This method can be invoked using property access syntax.
Parameters
Variant
Type: Variant
An instance of the Variant data type.
Return Value
Ok
Type: Boolean
true if the AL variant contains a FilterPageBuilder variable, otherwise false.
Example
The following example uses the IsFilterPageBuilder method on a filter page object that includes a filter control for the Date system table.
var
varDateItem: Text;
varFilterPageBuilder: FilterPageBuilder;
myVariant: Variant;
begin
varDateItem := 'Date record';
varFilterPageBuilder.AddTable(varDateItem + ‘ 1’,DATABASE::Date);
myVariant := varFilterPageBuilder;
if not myVariant.IsFilterPageBuilder then
ERROR(‘This variant should contain a FilterPageBuilder variable’);
end;