IPrxTableIslandLayout.Count

Syntax

Count: Integer;

Description

The Count property returns the number of rows in a layout.

Example

Sub Main;
Var
    MB: IMetabase;
    MObj : IMetabaseObject;
    Report : IPrxReport;
    TabIs : IPrxTableIslands;
    TI : IPrxTableIsland;
    Layout : IPrxTableIslandLayout;
    Count : Integer;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"Report").Edit;
    Report := MObj 
As IPrxReport;
    TabIs := Report.TableIslands;
    TI := TabIs.Item(
0);
    TI := TI.Edit;
    Layout := TI.Layout;
    Count := Layout.Count;
    Debug.WriteLine(Count);
    MObj.Save;
End Sub Main;

After executing the example the console window displays the number of rows in the layout. Report - identifier of a regular report.

See also:

IPrxTableIslandLayout