IRubricatorDictionaryLookup.WhereIsDeleted

Syntax

WhereIsDeleted: TriState;

Description

The WhereIsDeleted property determines whether deleted records are used in search:

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.

Sub Main;

Var

MB: IMetabase;

RubDesc: IMetabaseObjectDescriptor;

Factors: Array Of Integer;

RubrIn: IRubricatorInstance;

FactsLookup: IRubricatorFactsLookup;

i: Integer;

Begin

MB := MetabaseClass.Active;

RubDesc := MB.ItemById("OBJ_RUBRICATOR");

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

FactsLookup := RubrIn.CreateFactsLookup;

FactsLookup.WhereIsDeleted := TriState.OnOption;

Factors := FactsLookup.LookupFactors;

For i := 0 To Factors.Length - 1 Do

Debug.WriteLine(Factors[i]);

End For;

End Sub Main;

After executing the example keys of deleted factors are displayed in the console window.

See also:

IRubricatorDictionaryLookup