IPrxMapScales.Add

Syntax

Add(Scale: PrxMapScale): IPrxMapScale;

Parameters

Scale - scale type.

Description

The Add method adds a regular report scale. Scale type is passed by the Scale parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

MapScales: IPrxMapScales;

MapScale: IPrxMapScale;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

MapScales := Report.Scales;

MapScale := MapScales.Add(PrxMapScale.Numeric);

MapScale.Id := "New_Scale";

MObj.Save;

End Sub Main;

After executing the example a new numeric scale with the New_Scale identifier is created in the regular report. The identifier of the regular report - Report.

See also:

IPrxMapScales