Brian Dunning's FileMaker Custom Functions

@CrossedAutoEnter ( thisFieldRef ; anotherFieldNum ; anotherValue )

Allows to auto-enter calculations in two fields that depend on each other.

  Be the first to rate this function Log in to vote

Alex Zueiv   Alex Zueiv - Show more from this author
Tashkent
https://github.com/zueiv

Share on Facebook Share on Twitter

  Sample input:
@CrossedAutoEnter ( Self ; 0 ; Meters * 3.280839895 )
@CrossedAutoEnter ( Self ; 1 ; Feet * .3048 )
  Sample output:
3.280839895 or 1
1 or .3048

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

1. Create two standard fields: Feet and Meters

2. Enable the options 'Auto-enter: Calculated value' with the following formulas:

Feet: @CrossedAutoEnter ( Self ; 0 ; Meters * 3.280839895 )
Meters: @CrossedAutoEnter ( Self ; 1 ; Feet * .3048 )

3. Unselect the checkboxes 'Do not replace existing value' for both fields

Now you can enter the length either in the field Meters or in the field Feet.

 

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: