IRdsDictionaryInstance.Delete

Syntax

Delete(Element: Integer);

Parameters

Element. Key of MDM dictionary element.

Description

The Delete method deletes the MDM dictionary element, which key is passed by the Element parameter.

Example

Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier.

Sub UserProc;
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 UserProc;

After executing the example the specified element of the MDM dictionary is deleted.

See also:

IRdsDictionaryInstance