IRubricatorInstance.DeleteFacts

Syntax

DeleteFacts(FactorKeys: Array);

Parameters

FactorKeys. Array of factors keys.

Description

The DeleteFacts method removes factors 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 factors with the 10023 and 10025 keys. Also, add links to the Cubes and Metabase system assemblies.

    Sub UserProc;
    Var
        Mb: IMetabase;
        Rub: IRubricator;
        RubI: IRubricatorInstance;
        FactorKeys: Array Of Integer;
    Begin
        Mb := MetabaseClass.Active;
        Rub := Mb.ItemById("OBJ_RUBRICATOR").Bind As IRubricator;
        RubI := (Rub As IMetabaseObject).Open(NullAs IRubricatorInstance;
        FactorKeys := New Integer[1];
        FactorKeys[0] := 10023;
        FactorKeys[1] := 10025;
        RubI.DeleteFacts(FactorKeys);
    End Sub Button3OnClick;

After executing the example the factors with the 10023 and 10025 keys are removed from the database.

See also:

IRubricatorInstance