GetFactDataByMnemo(Mnemo: String; [Options: DictionaryGetDataOptions = 0]): IRubricatorFactData;
Mnemo. Indicator mnemonic.
Options. Parameter of getting data.
The GetFactDataByMnemo method returns data of time series dictionary based on indicator mnemonic.
If mnemonics are not used to identify indicators, that is, IRubricator.HasMnemonics returns False, GetFactDataByMnemo always returns empty value.
Executing the example requires a time series database with the OBJ_RUBRICATOR identifier. This database contains an indicator with the Albania|BCA|Years mnemonic.
Sub UserProc;
Var
MB: IMetabase;
RubrInst: IRubricatorInstance;
FactD: IRubricatorFactData;
RubFactor: IRubricatorFactor;
Begin
MB := MetabaseClass.Active;
RubrInst := MB.ItemById("OBJ_RUBRICATOR").Open(Null) As IRubricatorInstance;
FactD := RubrInst.GetFactDataByMnemo("Albania|BCA|Years");
Debug.WriteLine("Revision name: " + FactD.Revision.Name);
RubFactor := FactD.Factor;
Debug.WriteLine("Indicator key: " + RubFactor.Factor.ToString);
End Sub UserProc;
After executing the example the console window displays information about the indicator with the Albania|BCA|Years mnemonic.
See also: