Abstraction Layers In Calculations

From Dwayne Wright PMP
Certified FileMaker Developer

WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright
YOUTUBE: FileMakerThoughts

Abstraction is the process of taking things away or separating them from the whole. A complex calculation can be crafted in such a way as to separate logical pieces, identify those pieces by giving them a name and then use those pieces for a more simplified calculation.

The Let Function is a simple (but quite powerful) example of calculation abstraction in action. It allows you to define your own variables within the syntax of the function. These variables are the names to the pieces of the calculation you have abstracted.

A Let function has 3 parameters which are the variable name(s), the expression that defines each variable and the calculation that uses the variables to return a result. It tends to look something like...

variable = this expression
variable1 = this other expression
variable2 = this yet another expression
calculated result is (variable + variable2 + variable3)

© 2010 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. FileMaker Pro is the registered trademark of FileMaker Inc.