Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Parses distance string.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MapView 9.2 Yes No Yes, macOS only No Yes
MBS( "MapView.ParseDistance"; text )   More


Parameter Description Example value
text The text to parse. "8 km"


Returns number or error.


Parses distance string.
Uses current locale, so may use miles in US and km in Europe.
Returns distance in meters.


Parse 8 km:

MBS( "MapView.ParseDistance"; "8 km" )

Example result: 8000

See also

Blog Entries

Release notes

Created 17th March 2019, last changed 17th March 2019

MapView.Overlays   -   MapView.PlanRoute

Feedback: Report problem or ask question.

MBS Xojo blog