Brian Dunning's FileMaker Custom Functions

Grid ( layoutWidth )

Helps with selecting the major grid spacing and minor grid steps for a given Filemaker layout and the number of columns to use.

  Be the first to rate this function Log in to vote

Lazarus Sismanis   Lazarus Sismanis - Show more from this author
Decision Group
http://www.decisiongroup.net

Share on Facebook Share on Twitter

  Sample input:
Grid ( 1200 )
  Sample output:
2 600
3 400
4 300
5 240
6 200
8 150
10 120
12 100
15 80
16 75
20 60
24 50
25 48
30 40
40 30
48 25
50 24
60 20
75 16
80 15
100 12

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

This custom function returns all the whole values for a given layout width when divided by any number of between 2 and 120, which serves as the number of columns for the layout. Helps with selecting the major grid spacing and minor grid steps for a given Filemaker layout and the number of columns to use.

The first column defines the number of columns in the layout. The second column indicates the major grid that should be used in order to have that certain number of columns.

Inspired by Matt Petrowsky and FilemakerMagazine video 'Using FileMaker's Grid'

 

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 20 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: