Brian Dunning's FileMaker Custom Functions

Is_FM_Go_iPad

Returns 1 if running FileMaker Go on an iPad.

  Average rating: 4.1 (38 votes) Log in to vote

Mark DeNyse   Mark DeNyse
Driftwood Interactive
http://DriftwoodInteractive.com

Share on Facebook Share on Twitter

  Sample input:
Is_FM_Go_iPad
  Sample output:
1

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

Returns 1 if running FileMaker Go on an iPad.

 

Comments

Bart Bartholomay   Bart Bartholomay, Vero Beach, FL
Jul 24, 2010
Why not:

Get(ApplicationVersion) = "Go_iPad"
 
Bart Bartholomay   Bart Bartholomay, Vero Beach, FL
Jul 24, 2010
Sorry. to catch any version number:

PatternCount(Get(ApplicationVersion); "Go_iPad")
 
Bart Bartholomay   Bart Bartholomay, Vero Beach, FL
Jul 24, 2010
A little more thought to it:

For the iPad:

Exact(LeftWords(Get(ApplicationVersion); 1) ; "Go_iPad")

For the iPhone/iTouch:

Exact(LeftWords(Get(ApplicationVersion); 1) ; "Go")
 
David Weaver   David Weaver, Australia
May 2, 2012
Using LeftWords simply returns "Go" as the underscore is recognised as a word separator. You need to use PatternCount as described in the custom function to make this work.
 

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.

Under construction. Email me your wish list for improvements.