IPrxDataIslandDimensionLayoutNodes.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index - index of an arbitrary title element.

Description

The Remove method removes an element of an arbitrary title based on the specified index. The element to be removed is searched for on a single title level.

If the removal is successful, the method returns True, otherwise it returns False.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

Dim : IDimInstance;

DimProp : IPrxDataIslandDimension;

RN : IPrxDataIslandDimensionLayoutNodes;

Result : Boolean;

Begin

DIs := Report.DataIslands;

DI := DIs.Item(0).Edit;

Prop := DI.Properties;

Dim := DI.Slice.LeftHeader.Item(0).Dimension;

DimProp := Prop.Dimension(Dim.Dimension);

RN := DimProp.Layout.RootNodes;

Result := Rn.Remove(0);

Debug.WriteLine(Result);

DI.Save;

End Sub UserProc;

After executing the example an element of an arbitrary title is removed based on the specified index. The console window displays removal results.

See also:

IPrxDataIslandDimensionLayoutNodes