May 26, 200421 yr 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
May 26, 200421 yr 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.
May 26, 200421 yr 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.
May 27, 200421 yr Author Here's what I have so far... The dialogue box says: "Are you sure you wish to exit?" with "NO" (default) & "YES" Andy
May 27, 200421 yr 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.
May 27, 200421 yr 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
May 27, 200421 yr 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