ICalendarDimAttributes.Name

Syntax

Name: ICalendarDimAttribute;

Description

The Name property determines custom attribute to be used for generating names of dictionary elements.

Comments

Any custom attribute can be used to form element names. To use it, you need to specify desired attribute in this property.

If you need to cancel using some attribute as the attribute used to form element names, set this property to Null.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    CalDim: ICalendarDimension;
    UserAttrs: ICalendarDimAttributes;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("CALENDAR_DIM").Edit;
    CalDim := MObj As ICalendarDimension;
    UserAttrs := CalDim.Attributes;
    UserAttrs.Name := CalDim.Attributes.Item(CalDim.Attributes.Count - 1);
    MObj.Save;
End Sub UserProc;

After executing the example, the last custom attribute is used to form element names on creating calendar dictionary.

See also:

ICalendarDimAttributes