Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SyntaxColoring.FormatCalculation
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
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Calculation | The calculation text. | ||
Flags | Pass 1 for compact output. | 0 | Optional |
Result
Returns text or error.
Description
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.
Examples
Format calculation:
MBS( "SyntaxColoring.FormatCalculation"; "1+2" )
Example result: "1 + 2"
See also
Release notes
- Version 14.1
- Added SyntaxColoring.FormatCalculation function.
Example Databases
- Utility functions/Evaluate
- Utility functions/FileMaker Custom Functions
- Utility functions/Formula Formatting
Blog Entries
- Goodies 37: Format button
- New in MBS FileMaker Plugin 14.1
- Neues MBS Plugin 14.1 für Claris FileMaker
- MBS Plugin 14.1 for Claris FileMaker
- MBS @ FMTraining.TV - New examples for FileMaker MBS Plugin
- MBS FileMaker Plugin, version 14.1pr4
- MBS FileMaker Plugin, version 14.1pr2
This function is free to use.
Created 8th February 2024, last changed 22nd February 2024