Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MapView.FormatDistance
Formats a distance.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MapView | 9.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "MapView.FormatDistance"; distance ) More
Parameters
Parameter | Description | Example |
---|---|---|
distance | The distance in meters to format. | 123 |
Result
Returns text or error.
Description
Formats a distance.Uses current locale for formatting, so it uses km in Europe and miles in USA.
Examples
Format a distance:
MBS( "MapView.FormatDistance"; 9555 )
Example result: "9,6 km"
Format a few meter:
MBS( "MapView.FormatDistance"; 123 )
Example result: 100 m
See also
Release notes
- Version 9.2
- Added MapView.FormatDistance, MapView.ParseDistance and MapView.PlanRoute functions.
Example Databases
Blog Entries
FileMaker Magazin
This function is free to use.
Created 17th March 2019, last changed 15th January 2024