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 - Show more from this author
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.

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: