Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7488 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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

This topic is 7488 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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