IVirtualCubeCompounds.Clear

Syntax

Clear;

Description

The Clear method clears the collection of composite structures.

Comments

After calling this method, value of the IVirtualCubeCompounds.Count property is equal to three because  the collection always contains predetermined structures (facts/calendar/scenarios), which cannot be removed.

Example

Executing the example requires that the repository contains a virtual cube with the CUBE_VIRT identifier. It is also necessary to add links to the Metabase, Cubes system assemblies.

    Sub UserProc;
    Var
        mb: IMetabase;
        VirtCube: IVirtualCube;
        Compounds: IVirtualCubeCompounds;
    Begin
        Mb := MetabaseClass.Active;
        VirtCube := Mb.ItemById("CUBE_VIRT").Edit As IVirtualCube;
        Compounds := VirtCube.Compounds;
        Compounds.Clear;
        (VirtCube As IMetabaseObject).Save;
    End Sub UserProc;

After executing the example all custom predetermined structures are removed from the virtual cube.

See also:

IVirtualCubeCompounds