![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FM 8.0v3 Adv on a Mac: I have set the file options: When closing a file perform script" named Shutdown. I have a button on a layout that runs the "exit application" script step. The script steps "exit application" and "close file" do not run the shutdown script. However, closing the file manually (clicking the window closure corner button, or the File>Close menu) or quitting FileMaker do activate the shutdown script. Why the difference? |
#3
| |||
| |||
|
|
In article <C2558BC2.18A10%trashadd5 (AT) bigfoot (DOT) com>, "David Robins, MD" trashadd5 (AT) bigfoot (DOT) com> wrote: FM 8.0v3 Adv on a Mac: I have set the file options: When closing a file perform script" named Shutdown. I have a button on a layout that runs the "exit application" script step. The script steps "exit application" and "close file" do not run the shutdown script. However, closing the file manually (clicking the window closure corner button, or the File>Close menu) or quitting FileMaker do activate the shutdown script. Why the difference? There shouldn't be a difference. If you've set the Document Preference option to run a Closing script, then that script should be run no matter how the file is closed - a quick test in FileMaker 5.5 of various "quit" and "close" methods proves this. First, check that the preferences is running the correct script. Then check that the script is not being skipped for some reason (a mismatching If test for example). It's possible you've found a bug in FileMaker 8, but I wouldn't have thought so. Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#4
| |||
| |||
|
|
I found one difference: If my Quit button directly runs the "exit application" step from the button setup menu, the shutdown script runs fine. If my Quit button runs a script that contains only the script step "exit application", shutdown scrip does not run, it just exits. With the Debugger is running, it does not even enter the shutdown script itself. |
![]() |
| Thread Tools | |
| Display Modes | |
| |