ICalendarDimension.StartYearAsParam

Syntax

StartYearAsParam: Boolean;

Description

The StartYearAsParam property determines state of the Do not Fix Calendar Start (Determine as Dictionary Parameter) option.

Comments

If the property is set to True, a parameter with the YEAR_START identifier is created in the dictionary. This parameter will be used to enter calendar start date.

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;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

CalDim:=MObj As ICalendarDimension;

CalDim.StartYearAsParam:=True;

MObj.Save;

End Sub Main;

After executing the example the Do not Fix Calendar Start (Determine as Dictionary Parameter) option is enabled for the calendar dictionary.

See also:

ICalendarDimension