FormatExpressionText(Format: MsTermTextFormat): String;
Format. Name Format.
The FormatExpressionText property returns the name of a composite term in the specified format.
The following formats are available for composite terms:
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 escaping. If the string contains the \ symbol, the next symbol is recognized as a string.
To apply several formatting parameters, specify the necessary enumeration values MsTermTextFormat via Or.
Executing the example requires that the repository contains the INFO composite term sent as a function input parameter.
Add a link to the Ms system assembly.
Sub UserProcInfo(Info: IMsCompositeFormulaTerm);
Begin
Debug.Write("Term name, subject to initial transformation: ");
Debug.WriteLine(Info.FormatExpressionText(MsTermTextFormat.Inversions));
Debug.Write("Term name with escaped characters: ");
Debug.WriteLine(Info.FormatExpressionText(MsTermTextFormat.Screened));
End Sub UserProcInfo;
After executing the example the console window displays the term name in different formats. For example:
Term name, subject to initial transformation: log(Annual data {2012}[t] * Seasonal variations {2012}[t])
Term name with escaping characters: Annual data \{2012\}[t] * Seasonal fluctuations \{2012\}[t]
See also: