IRubricatorInstance.DeleteFacts

Syntax

DeleteFacts(FactorKeys: Array);

Parameters

FactorKeys. Array of indicators keys.

Description

The DeleteFacts method removes indicators with the specified keys from the time series database.

Comments

The FactorKeys parameter must be an integer array.

Example

Executing the example requires a time series database with the OBJ_RUBRICATOR identifier. The database must contain indicators with the 10023 and 10025 keys.

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    RubInst: IRubricatorInstance;
    FactorKeys: Array Of Integer;
Begin
    Mb := MetabaseClass.Active;
    RubInst := Mb.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    FactorKeys := New Integer[2];
    FactorKeys[0] := 10023;
    FactorKeys[1] := 10025;
    RubInst.DeleteFacts(FactorKeys);
End Sub UserProc;

After executing the example the indicators with the specified keys are removed from the database.

See also:

IRubricatorInstance