IMetaDictionaryLookup.WhereFactorMnemo

Syntax

WhereFactorMnemo: String;

Description

The WhereFactorMnemo property determines target value of the attribute specified in the MnemoAttribute property.

Example

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

Add links to the Metabase, Cube, Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubDesc: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    DictInst: IMetaDictionaryInstance;
    MetaDLookup: IMetaDictionaryLookup;
    Atts: IMetaAttributes;
    Mnemo: String;
    i: Integer;
    Res: Array Of Integer;
Begin
    MB := MetabaseClass.Active;
    RubDesc := MB.ItemById("FC_MN");
    RubrIn := RubDesc.Open(NullAs IRubricatorInstance;
    DictInst := RubrIn.Facts;
    MetaDLookup := DictInst.CreateLookup;
    Atts := DictInst.Dictionary.Attributes;
    Mnemo := Atts.FindByKind(MetaAttributeKind.Mnemo).Id;
    MetaDLookup.WhereFactorMnemo := "Afghanistan|BCA|Years";
    If MetaDLookup.LookupKeys("FACTOR") <> Null Then
        i := MetaDLookup.LookupKeys("FACTOR").Length;
        Res := New Integer[i];
        Res := MetaDLookup.LookupKeys("FACTOR");
        For i := 0 To Res.Length - 1 Do
            Debug.WriteLine(Res[i].ToString);
        End For;
    End If;
End Sub Userproc;

After executing the example the console window displays keys of indicators that have the Afghanistan|BCA|Years mnemonics.

See also:

IMetaDictionaryLookup