Julio Toledo

Free FileMaker custom functions

Discussion created by Julio Toledo on Jan 6, 2019
Latest reply on Jan 21, 2019 by Julio Toledo

Just added a few new FileMaker custom functions we'd like to share with the community for the New Year.

Happy coding!

 

#new custom-functions

'GetMajorVersion'

extracts Major application version number (as string) from version string. This function is intended to evaluate file names, server application version,  API versions, global variables, window names, or any other string you throw at it.

 

'GetMinorVersion'

extracts Patch and Minor application version numbers (as string) from version string. This function is intended to evaluate file names, server application version,  API versions, global variables, window names, or any other string you throw at it.

 

'GetSystemPlatformVersion'

transforms host OS name & version number, or OS abbreviation & browser version, to human readable format

 

'GetLayoutViewState'

converts window view state integer values into human readable strings

 

'GetWindowOrientation'

converts window orientation integer values ( aspect ratio and title bar position ) into human readable strings

 

'GetWindowStyle'

converts window style integer values into human readable strings

 

'JSONExplode'

transforms JSON into a return-delimited value list similar to YAML

 

#oldies but goodies:

'ArrayReformat'

transforms any lists with any separator into a text array in any syntax you specify (JSON, CSV, etc.)

 

'ArrayCombine'

returns a combined array from two separate arrays, similar to php's array_combine function

 

'GetFileSize'

transforms raw byte size into a human readable memory string (i.e. '10 Megabytes' )

 

On GitHub:

GitHub - Automation-USA/custom-functions: FileMaker Custom Functions

https://github.com/Automation-USA/custom-functions/blob/master/JSONExplode.fmfn

 

On Brian Dunning:

FileMaker Custom Function: JSONExplode ( JSON )

FileMaker Custom Function: GetMajorVersion ( string )

FileMaker Custom Function: GetMinorVersion ( string )

FileMaker Custom Function: GetSystemPlatformVersion

FileMaker Custom Function: GetLayoutViewState

FileMaker Custom Function: GetWindowOrientation

FileMaker Custom Function: GetWindowStyle

oldies:

FileMaker Custom Function: GetFileSize ( Bytes ; Precision ; UOM ; Format )

FileMaker Custom Function: ArrayReformat ( valueList ; quoteStyle ; braceStyle ; newSeparator ; oldSeparator )

FileMaker Custom Function: ArrayCombine ( array1 ; array2 ; startposition ; separator )

Outcomes