Remove(Index: Integer): Boolean;
Index - regular report scale index.
The Remove property removes the scale of the regular report, which index is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
MapScales: IPrxMapScales;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
MapScales := Report.Scales;
MapScales.Remove(0);
MObj.Save;
End Sub Main;
After executing the example the first scale of the regular report is removed. The identifier of the regular report - Report.
See also: