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: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  

MapView.ParseDistance

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

Parameters

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

Result

Returns number or error.

Description

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

Examples

Parse 8 km:

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

Example result: 8000

See also

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


MapView.IsUserLocationVisible   -   MapView.PlanRoute

Feedback: Report problem or ask question.




Links
MBS FileMaker blog