fmp.url.scheme ( )

Function stats

Average user rating
37
423
9999
Support
FileMaker 10.0 +
Date posted
23 May 2019
Version
1
Recursive function
No

Author Info
 Fabrice

79 functions

Average Rating 4.4

author_avatar



 

Function overview

Prototype

fmp.url.scheme  ( _applicationVersion )


Parameters

_applicationVersion  if empty, uses current app version


Description

Tags:  url scheme   protocol   fmp  

returns the appropriate fmp:// protocol for the current application
fmp.url.scheme ( "18.0.3" ) -> "fmp18://"
fmp.url.scheme ( "17.0.2" ) -> "fmp://" (specific version numbers supported only as of 18)

if _applicationVersion is empty, uses get ( applicationversion )

Examples

Sample input

fmp.url.scheme ( "18.0.3" )
fmp.url.scheme ( "17.0.2" )


Sample output

fmp18://
fmp://

 

Function code

/* fmp.url.scheme ( _applicationVersion )
returns the appropriate fmp protocol for the current application
fmp.url.scheme ( "18.0.3" ) -> "fmp18://"
fmp.url.scheme ( "17.0.2" ) -> "fmp://" (specific version numbers supported only as of 18)

if _applicationVersion is empty, uses get ( applicationversion )

*/


Let ([
    _v = fm.version.major ( _applicationVersion )
];
    "fmp" & Case ( _v >=18 ; _v ) & "://"
)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/423

    Prototype: fmp.url.scheme( _applicationVersion )
    Function Author: Fabrice (http://www.fmfunctions.com/mid/37)
    Last updated: 23 May 2019
    Version: 1

*/
// ===================================

 

 

 

 

 

 

 

Related Functions

Required functions