Andy Robo Posted May 26, 2004 Posted May 26, 2004 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
ernst Posted May 26, 2004 Posted May 26, 2004 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.
dbruggmann Posted May 26, 2004 Posted May 26, 2004 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.
Andy Robo Posted May 27, 2004 Author Posted May 27, 2004 Here's what I have so far... The dialogue box says: "Are you sure you wish to exit?" with "NO" (default) & "YES" Andy
Vaughan Posted May 27, 2004 Posted May 27, 2004 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.
dbruggmann Posted May 27, 2004 Posted May 27, 2004 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
Andy Robo Posted May 27, 2004 Author Posted May 27, 2004 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now