AssignAttributesFormats(Source: ICalendarDimension);
Source - calendar dictionary from which formats of attribute displaying should be copied.
The AssignAttributesFormats method copies formats of displaying attributes from selected calendar dictionary.
Executing the example requires that repository contains calendar dictionaries with the DICT_CALEND and CALENDAR_SOURCE identifiers.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
CalDim, CalDimSour: ICalendarDimension;
Begin
MB := MetabaseClass.Active;
CalDimSour := MB.ItemById("CALENDAR_SOURCE").Bind As ICalendarDimension;
MObj := MB.ItemById("DICT_CALEND").Edit;
CalDim := MObj As ICalendarDimension;
CalDim.AssignAttributesFormats(CalDimSour);
MObj.Save;
End Sub Main;
After executing the example formats for displaying attributes of the DICT_CALEND dictionary are copied from the CALENDAR_SOURCE dictionary.
See also: