Factor: Integer;
The Factor property returns indicator key.
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;
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("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: