Show contents 

Report > Report Assembly Interfaces > IPrxMapScales > IPrxMapScales.Add

IPrxMapScales.Add

Syntax

Add(Scale: PrxMapScale): IPrxMapScale;

Parameters

Scale - scale type.

Description

The Add method adds a regular report scale.

Comments

Scale type is passed by the Scale parameter.

Example

Sub UserProc;
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 UserProc;

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