Automating FileMaker Pro: Scripting, Calculations, and Data Transfer

Chapter 6: Programming and Control Steps

Control

The steps in this section deal with traditional programming concepts. They fall into three categories:

  1. Perform Script lets you do just that; it is similar to function or procedure calls.
  2. If script steps allow conditional execution of other script steps.
  3. Loops allow script steps to be repeated.

Perform Script

This is the step that lets you perform other scripts. They may be located in the current database or they may be in other databases external scripts. Starting with FileMaker Pro 5, you can import scripts from other databases to your own database; once you have done so, they are no longer external because they are copied into your database, where they can be modified.)

Note

For more information on using scripts, see "Controlling Scripts" starting on page 80. That section details how you can stop and pause scripts.

Category

Control

Options

PERFORM SUBSCRIPTS When selected, this option performs scripts found within the script that you are performing. When it is not selected, Perform Script steps in the script you are performing are skipped. Note that inconsistent use of this option can make for very complicated debugging. Pick your programming style and stick to it (most programmers would choose to enable this option). If you feel that you sometimes need to perform subscripts and other times do not, consider restructuring your scripts so that you can have a consistent approach to the matter. (An If statement may be the answer in such a case.)

SCRIPT The Specify button...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Web Application Software
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.