Delete(Element: Integer);
Element. Key of MDM dictionary element.
The Delete method deletes the MDM dictionary element, which key is passed by the Element parameter.
Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier.
Sub Main;
Var
MB: IMetabase;
Dict: IRdsDictionary;
DictInst: IRdsDictionaryInstance;
Key: Integer;
Begin
MB := MetabaseClass.Active;
Dict := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Bind As IRdsDictionary;
DictInst := Dict.Open(Null);
Key := DictInst.Elements.Item(1).Key;
DictInst.Delete(Key);
End Sub Main;
After executing the example the specified element of the MDM dictionary is deleted.
See also: