• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Script Troubleshooting > Creating an Error Trap Script

Creating an Error Trap Script

FileMaker doesn't always tell you that a scripting error has occurred, or what the error is. For example, if a script has a restored Sort that uses a field that is no longer in the database or a Go to Layout step that calls for a deleted or renamed layout, the script will behave unpredictably. Not having a clue to what's wrong with the script, you can waste precious time just narrowing down the nature of the error. To avoid this exasperating experience, create a script that reacts when it finds an error, looks up the error number and uses the information to give you feedback on what happened.

This script relies on Status functions for its effectiveness. A Status function takes the pulse of what's happening on your computer at any given time. The Status (CurrentError) function specifically identifies any error code FileMaker generates. FileMaker offers a complete list of Status (CurrentError) numbers in its Help file. We'll use this to create the database of error numbers and descriptions the error trap script displays.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint