VISUAL QUICKPRO GUIDE FileMaker Pro 7 Advanced FOR WINDOWS AND MACINTOSH [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

VISUAL QUICKPRO GUIDE FileMaker Pro 7 Advanced FOR WINDOWS AND MACINTOSH [Electronic resources] - نسخه متنی

Cynthia L. Baron, Daniel Peck

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید











Testing Finished Scripts


It's wise to test a script you've written to see if it performs as intended. However, even test runs can be dangerous if you don't take precautions. Procedures like modifying data in fields or deleting records can't be undone. Follow good testing procedures and you'll never experience the sinking feeling that comes with a misplaced or missing step.

After the script runs, check the results carefully. Make sure that the proper records were found and that they were sorted correctly, that you end up at the correct layout, and that anything else you intended was handled properly.

To test a new script



1 .

Choose File > Save a Copy As to make a copy of the database before running the script.

This first step is the most critical one. If a script involves any actions that can't be undone, you should never, ever test it on your only copy of a current database. If the test goes as planned, you can delete the copy of the file after you check it.

2 .In the "Create a copy named:" dialog box, choose "copy of current file" in the Save a (Windows)/Type (Macintosh) drop-down menu (Figure 10.1). Click Save.

Figure 10.1. The "Create a copy named:" dialog box lets you save a copy of your file before testing scripts that can alter data.


[View full size image]

3 .

Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).

4 .In the Define Scripts dialog box, highlight the script in the window and click Perform to test it by running it in the original file (Figure 10.2).

Figure 10.2. Perform runs the selected script.


If the script seems to run without errors, check the resultlayout, printouts, or recordsto make sure they're correct.

5 .If everything is okay, you're finished. If you find anything wrong, close the file or quit FileMaker. Delete the file where you ran the script. Rename the copy with the original file name.

6 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S) and see "Debugging Scripts" later in this chapter.



/ 227