Count : Integer;
The Count property returns the number of layout row cells.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Layout : IPrxTableIslandLayout;
Row : IPrxTableIslandLayoutRow;
Count : Integer;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Bind;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
Layout := TI.Layout;
Row := Layout.Rows(0);
Count := Row.Count;
Debug.WriteLine(Count);
End Sub Main;
After executing the example the console window displays the number of layout row cells. Report - identifier of a regular report.
See also: