FormatExpressionText(Format: MsTermTextFormat): String;
FormatExpressionText[Format: Prognoz.Platform.Interop.Ms.MsTermTextFormat]: string;
Format. Name Format.
The FormatExpressionText property returns the name of a compound term in the specified format.
For the compound terms the following formats are available:
MsTermTextFormat.Inversions. Name with term initial transformation and its period specification.
MsTermTextFormat.Screened. Name of the term with the escaped characters. The \ symbol is used for character screening. If the string contains the \ symbol, then the next symbol is recognized as a string.
To apply several formatting parameters, specify the necessary enumeration values MsTermTextFormat through Or.
Executing the example requires the Info compound term passed as a function input parameter. Add a link to the Ms system assembly.
Sub UserProcInfo(Info: IMsCompositeFormulaTerm);
Begin
Debug.Write("Term name, subject to the initial transformation: ");
Debug.WriteLine(Info.FormatExpressionText(MsTermTextFormat.Inversions));
Debug.Write("Name of the term with escaped characters: ");
Debug.WriteLine(Info.FormatExpressionText(MsTermTextFormat.Screened));
End Sub UserProcInfo;
After executing the example, the term name is displayed in the console window in the different formats. For example:
Term name, subject to the initial transformation: log(Annual data {2012}[t] * Seasonal variations {2012}[t])
The name of the term with escaping characters: Annual data \{2012\}[t] * Seasonal fluctuations \{2012\}[t]
Executing the example requires the Info compound term passed as a function input parameter.
Imports Prognoz.Platform.Interop.Ms;
…
Public Shared Sub UserProcInfo(Info: IMsCompositeFormulaTerm);
Begin
System.Diagnostics.Debug.Write("Term name, subject to the initial transformation: ");
System.Diagnostics.Debug.WriteLine(Info.FormatExpressionText[MsTermTextFormat.mttfInversions]);
System.Diagnostics.Debug.Write("Names of the term with escaped characters: ");
System.Diagnostics.Debug.WriteLine(Info.FormatExpressionText[MsTermTextFormat.mttfScreened]);
End Sub UserProcInfo;
After executing the example, the term name is displayed in the console window in the different formats. For example:
Term name, subject to the initial transformation: log(Annual data {2012}[t] * Seasonal variations {2012}[t])
The name of the term with escaping characters: Annual data \{2012\}[t] * Seasonal fluctuations \{2012\}[t]
See also: