IRubricatorInstance.DeleteMembersFacts

Syntax

DeleteMembersFacts(Members: IMetaMembersSet; Recursive: Boolean);

Parameters

Members. A set of deleted elements.

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

Description

The DeleteMembersFacts method deletes factors corresponding with the specified elements set.

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;

Rub: IMetabaseObject;

RubrIn: IRubricatorInstance;

Begin

SelNodes := MetaAttributesTreeList1.GetSelectedNodes;

MembersSet := MetaAttributesTreeList1.GetNodesMembers(SelNodes);

Rub := MetaAttributesTreeList1.Rubricator As IMetabaseObject;

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

RubrIn.DeleteMembersFacts(MembersSet, True);

End Sub Button1OnClick;

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

See also:

IRubricatorInstance