Brian Dunning's FileMaker Custom Functions

VariablesFromFields ( )

passes the content of all fields on the layout to named variables

  Average rating: 4.5 (31 votes) Log in to vote

Fabrice Nordmann   Fabrice Nordmann - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
on layout,
field "A" that contains "1" and
field "B" that contains "2
  Sample output:
$$A = 1
$$B = 2

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

Great to load settings into global variables in a snap, regardless of the type of the field, where a loop would not stop in a calculation field.
Just place your fields on the layout, and run a script such as

Set Variable [ $temp ; VariablesFromFields ( ) ]
You can even use an unstored calculation, just as the demo file does, and not even neeed to run a script.



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: