Adding Comments to a Script
FileMaker 7 makes it easy to check the criteria you've set in Find, Sort, and other script steps. But if, for example, all of the fields that were used for the search don't appear in the current layout, you won't see an accurate picture of the Find settings, nor will you have any clue that this is the case.There must be a better way, you're thinking. And there is, although it does require additional work on your part. You can insert comments in a script as a reminder of what the steps do. In fact, you can add any information as a comment, not just find and sort criteria. For this example, we add comments to a sub-script.
To add comments to a script
1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).2 .In the Define Scripts list of scripts, highlight the name of the script you want to annotate and click Edit.3 .When the Edit Script dialog box appears, select the step you want to explain in the script-assembly list (Figure 7.49).
Figure 7.49. Select steps that will need explanations later.

Figure 7.50. Choosing the Comment step adds a new line beneath the step you want to annotate.
[View full size image]

Figure 7.51. Type your comment in the Specify dialog box.

Figure 7.52. Your typed comment is inserted after the # sign.
[View full size image]

