IRubricatorInstance.GetFactDataByMnemo

Syntax

GetFactDataByMnemo(Mnemo: String; [Options: DictionaryGetDataOptions = 0]): IRubricatorFactData;

Parameters

Mnemo - factor mnemonic.

Options - data getting parameter. Optional parameter. Default value - DictionaryGetDataOptions.None - getting data for reading.

Description

The GetFactDataByMnemo method returns data of time series dictionary based on factor mnemonic.

Comments

If mnemonics are not used to identify factors, that is, IRubricator.HasMnemonics returns False, GetFactDataByMnemo always returns empty value.

Example

Executing the example requires a time series database with the OBJ_RUBRICATOR identifier. This database contains a factor with the Albania|BCA|Years mnemonic.

Sub Main;

Var

MB: IMetabase;

RubrIn: IRubricatorInstance;

FactD: IRubricatorFactData;

RubFactor: IRubricatorFactor;

Begin

MB := MetabaseClass.Active;

RubrIn := MB.ItemById("OBJ_RUBRICATOR").Open(Null) As IRubricatorInstance;

FactD := RubrIn.GetFactDataByMnemo("Albania|BCA|Years");

Debug.WriteLine("Revision name:" + FactD.Revision.Name);

RubFactor := FactD.Factor;

Debug.WriteLine("Factor key:" + RubFactor.Factor.ToString);

End Sub Main;

After executing the example the console window displays information about the factor with the Albania|BCA|Years mnemonic.

See also:

IRubricatorInstance