Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot make FileMaker close all files?

Featured Replies

Hi,

I have a menu file with a button labelled "Close all files". This button just performs a "Close" script step, which makes the menu files' close script to run. This closing script performs a Close("File X") script step for each file in the solution (about 25). After these, FileMaker itself is shut down if no other file is open using a:

If("PatternCount(DatabaseNames,"<Return character>")=0")

Quit program

End If

The problem:

When running this close script, I always end up with some files still open. When pressing the button a second time, all of the files close properly. It seems that some files are re-opened after having closed them one time. I know this can happen if you have layouts visible that have portals etc. or in other ways reference relationships, that cause files to re-open. But in this case I've tried "everything", i.e. minimizing all files, performing Freeze Window etc, everything to make any relationships NOT having to open files. But still, they re-open. What gives?

Has anyone seen this behavious before?

The environment is FileMaker 5.0/5.5 and mixed Windows 2000/Mac OS 9 environment. The problem occurs on both platforms.

Thanks,

Daniel

I'm having the same problem as I write.

Try putting the script in a loop:

Loop

close all files on server

Exit loop If("PatternCount(DatabaseNames,"<Return character>")=0")

End Loop

My problem is that each file has it's own closing script, and when I try to close all files from the menu file, it opens each file to run its closing script.

It would be nice to have in Preferences->Application the option to close all files tongue.gif

Good Luck

Actually, instead of sweating all the relationships, you can:

1. Specify to open your Menu file with defauslt password

2. Close the FileMaker app.

All the files will automatically close.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.