ICalendarDimension.RemoveAttribute

Syntax

RemoveAttribute(AttrNumber: Integer);

Parameters

AttrNumber - attribute number on dictionary creation.

Description

The RemoveAttribute method removes a standard attribute from the list of attributes used when calendar dictionary is created.

Comments

Unlike the AddAttribute method, this method operates with a through number of standard attribute used to create calendar dictionary.

Example

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

Add links to the Metabase and Dimensions system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    CalDim: ICalendarDimension;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"CALENDAR_DIM").Edit;
    CalDim := MObj 
As ICalendarDimension;
    CalDim.RemoveAttribute(CalDim.AttributeCount - 1);
    MObj.Save;
End Sub UserProc;

After executing the example the last attribute displayed at dictionary creation is removed from the calendar dictionary.

See also:

ICalendarDimension