IPrxMapScales.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index - regular report scale index.

Description

The Remove property removes the scale of the regular report, which index is passed by the Index parameter.

Example

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:

IPrxMapScales