ICalendarDimension.HierarchyCorrection

Syntax

HierarchyCorrection: Boolean;

Description

The HierarchyCorrection property determines state of the Hierarchy Correction option. It is taken into account when the Shift Last Level By One Point Forward option is enabled.

Example

Executing the example assumes that the repository contains a calendar dictionary with the CALENDAR_DIM identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

CalDim: ICalendarDimension;

Begin

MB:=MetabaseClass.Active;

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

CalDim:=MObj As ICalendarDimension;

CalDim.ShiftForward:=True;

CalDim.HierarchyCorrection:=True;

MObj.Save;

End Sub Main;

After executing the example the Hierarchy Correction option is enabled for the calendar dictionary.

See also:

ICalendarDimension