Count: Integer;
The Count property returns the number of regular report scales.
Sub Main;
Var
MB: IMetabase;
Report: IPrxReport;
MapScales: IPrxMapScales;
i: Integer;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Bind As IPrxReport;
MapScales := Report.Scales;
i := MapScales.Count;
End Sub Main;
After executing the example the "i" variable contains the number of regular report scales. The identifier of the regular report - Report.
See also: