Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Reformats the calculation text.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "SyntaxColoring.FormatCalculation"; Calculation { ; Flags } )   More


Parameter Description Example Flags
Calculation The calculation text.
Flags Pass 1 for compact output. 0 Optional


Returns text or error.


Reformats the calculation text.
Takes the text of a calculation, parses it and then outputs it with indentation and whitespace to make sure it looks nice.

See also SyntaxColoring.Format to apply coloring rules.


Format calculation:

MBS( "SyntaxColoring.FormatCalculation"; "1+2" )

Example result: "1 + 2"

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 8th February 2024, last changed 22nd February 2024

SyntaxColoring.Format - SyntaxColoring.GetAddFindbars