IRubricatorInstance.DeleteMemberFacts

Syntax

DeleteMemberFacts(Member: IMetaMember; Recursive: Boolean);

Parameters

Member. Element to be deleted.

Recursive. Indicates whether children must be deleted. True: child elements are deleted; False: child elements are not deleted.

Description

The DeleteMemberFacts method deletes the factor corresponding with the specified element.

Example

Executing the example requires a form, a button on it with the Button1 identifier, the MetaAttributesBreadcrumb component and the MetaAttributesTreeList component named MetaAttributesTreeList1. These components are set up to work with a specific time series database.

Click the button to execute the example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

SelNodes: Array;

MembersSet: IMetaMembersSet;

Member: IMetaMember;

Rub: IMetabaseObject;

RubrIn: IRubricatorInstance;

Begin

SelNodes := MetaAttributesTreeList1.GetSelectedNodes;

MembersSet := MetaAttributesTreeList1.GetNodesMembers(SelNodes);

Rub := MetaAttributesTreeList1.Rubricator As IMetabaseObject;

RubrIn := Rub.Open(Null) As IRubricatorInstance;

MembersSet.Reset;

While Not MembersSet.Eof Do

Member := MembersSet.Current;

RubrIn.DeleteMemberFacts(Member, True);

MembersSet.Next;

End While;

End Sub Button1OnClick;

After executing the example the factors corresponding with the specified elements are deleted.

See also:

IRubricatorInstance