GenerateMnemo: String;
The GenerateMnemo method generates mnemonic of factor.
Executing the example requires that the repository contains a time series database with the FC_MN identifier.
Sub Main;
Var
MB: IMetabase;
RubDesc: IMetabaseObjectDescriptor;
RubrIn: IRubricatorInstance;
Loo: IRubricatorFactsLookup;
i: Integer;
Factors: Array Of Integer;
FactD: IRubricatorFactData;
Begin
MB := MetabaseClass.Active;
RubDesc := MB.ItemById("FC_MN");
RubrIn := RubDesc.Open(Null) As IRubricatorInstance;
Loo := RubrIn.CreateFactsLookup;
Factors := Loo.LookupFactors;
For i := 0 To Factors.Length - 1 Do
FactD := RubrIn.GetFactData(Factors[i]);
Debug.WriteLine(FactD.GenerateMnemo);
End For;
End Sub Main;
After executing the example the console window displays generated mnemonics for all factors of the database.
See also: