Factor: Integer;
The Factor property returns factor key.
Executing the example requires a time series database with the OBJ_RUBRICATOR identifier. This database contains a time series 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: