IEaxTableStyle.Equal

Syntax

Equal(Value: IEaxTableStyle): Boolean;

Description

The Equal method compares formatting style of an express report table with the style passed by the Value parameter.

Example

Sub Main;

Var

MB: IMetabase;

Expr, Expr1: IEaxAnalyzer;

Grid: IEaxGrid;

Style: IEaxTableStyle;

s: String;

Begin

MB:=MetabaseClass.Active;

Expr:=MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;

Expr1:=MB.ItemById("EXPRESS_REPORT1").Bind As IEaxAnalyzer;

Grid:=Expr.Grid;

Style:=Grid.Style;

If Style.Equal(Expr1.Grid.Style) Then

s:="Yes";

Else

s:="No";

End If;

End Sub Main;

 

After executing the example the s variable contains Yes if the style of the table of the EXPRESS_REPORT express report is the same as the style of the table of the EXPRESS_REPORT1 express report.

See also:

IEaxTableStyle