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;
See Also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈