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.

Abort the closing of DB

Featured Replies

Evening all

If I have a CLOSE script which checks with the user to see if the REALLY want to close the database after they have clicked the little red button up in the left corner (MAC) or the X button (Windows), how do I stop the database from closing if they choose "NO"

I had it working... and then deleted some stuff in my script and now I can't for the life of me remember what I did....

Andy

Hi Andy,

Good morning from the other side of the planet!

I've never seen this work. I got as far as delaying the closing of the database by entering a loop, but when exiting the loop the database would close after all.

This might have changed with v7, so I'll try again, but I really doubt if FM changed this behaviour.

Grtz,

Ernst.

If you show us the remaining parts of your closing script (make a screen shot of the defining dialog), someone maybe figures out what is missing.

  • Author

Here's what I have so far...

The dialogue box says:

"Are you sure you wish to exit?"

with

"NO" (default) & "YES"

Andy

close.gif

Exiting the script will not stop the file from closing.

Once the user has told FMP to close the file, FMP closes it. I know of no way to abort the close.

If you choose "No" with your script now, does it close only the current file or all the files?

You said, you had it working once: How did this exactly work?

The only thing I could think of at the moment, is to call an external script, which re-opens the closing file. But for this you need some file that remains open

  • Author

Thanks guys...

i've decided that the user will just have to live with it - I can't remember for the life of me what had written down in my original script - it had a wee bug which was why i deleted parts of it - but I was sure I was able to abort a complete close... oh well never mind

andy

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.