Brian Dunning's FileMaker Custom Functions

GetSystemPlatformVersion

Returns host OS name and version number or OS abbreviation and browser version in human readable format.

  Average rating: 5.0 (1 vote) Log in to vote

Julio Toledo   Julio Toledo - Show more from this author
Automation USA LLC
https://www.automationusa.net

Share on Facebook Share on Twitter

  Sample input:
GetSystemPlatformVersion
  Sample output:
Returns:
"macOS 10.14.2"
(when executed from a Mac running FileMaker Pro on macOS Mojave)

"iOS 11.4.1"
(when executed from an iOS device running FileMaker Go on iOS 11.4.1)

"Windows 7"
(when executed from a PC running FileMaker Pro on Windows 7)

"Windows 10"
(when executed from a PC running Windows 10)

"WebDirect iPad Safari 11.0"
(when executed from a PC running WebDirect on iOS Safari 11.x)

"WebDirect Mac Safari 12.0"
(when executed from a Mac running WebDirect on macOS Safari 12.x)

"WebDirect Win Edge 17.17134"
(when executed from a PC running WebDirect on Microsoft Edge 17.17134)

"WebDirect Win Chrome 71"
(when executed from a PC running WebDirect on Google Chrome 71)

"WebDirect Win IE 11.0"
(when executed from a PC running WebDirect on Microsoft Internet Explorer 11)

"WebDirect Win Other 64.0"
(when executed from a PC running WebDirect on Mozilla Firefox 64.0, or other unsupported browser version)

"N/A N/A"
(when executed from an unknown client on an unknown version)

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Requires no parameters. Much simpler code than "GetPlatformName" (https://www.briandunning.com/cf/1488)

Returns:
"macOS 10.14.2"
(when executed from a Mac running FileMaker Pro on macOS Mojave)

"iOS 11.4.1"
(when executed from an iOS device running FileMaker Go on iOS 11.4.1)

"Windows 7"
(when executed from a PC running FileMaker Pro on Windows 7)

"Windows 10"
(when executed from a PC running Windows 10)

"WebDirect iPad Safari 11.0"
(when executed from a PC running WebDirect on iOS Safari 11.x)

"WebDirect Mac Safari 12.0"
(when executed from a Mac running WebDirect on macOS Safari 12.x)

"WebDirect Win Edge 17.17134"
(when executed from a PC running WebDirect on Microsoft Edge 17.17134)

"WebDirect Win Chrome 71"
(when executed from a PC running WebDirect on Google Chrome 71)

"WebDirect Win IE 11.0"
(when executed from a PC running WebDirect on Microsoft Internet Explorer 11)

"WebDirect Win Other 64.0"
(when executed from a PC running WebDirect on Mozilla Firefox 64.0, or other unsupported browser version)

"N/A N/A"
(when executed from an unknown client on an unknown version)

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.