Ways To Passover A FileMaker Script Step(S)

From Dwayne Wright PMP, PMI-ACP, CSM
Certified FileMaker Developer

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

With FileMaker Pro Advanced, there is an easy way to disable script steps so that they do not execute when the script is run. There is a Disable button included right into the Edit Script dialog box. You simply need to click the script step(s) you want to disable and click the button.

To turn off the disable feature (or enable the step), simply click the disabled script step(s) and you will notice the disable button has changed into an enable button. Simply click it and the step(s) are good to go!

With the regular version of FileMaker Pro, there is no way to comment out an individual script step so that it does execute when the script is run.

There is a way but it's not a checkbox you can select from any dialog box. The idea is to use the IF script step in front of the script step (or contiguous set of steps) you want to comment out. Then make sure that the portion of the script step or steps you want to comment out are in an area of the IF statement that will always be false. For example, you can put in an IF parameter such as IF ( 1 = 2, then perform, else passover) So it would look something like this ...

Enter Browse Mode []
Go To Layout [Entry]
If ["1 = 2 ]
Perform Find [Restore]
Else
End If

Here the Perform Find step will never execute because it is branched by a statement that will always be FALSE.

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.