Phil Posted January 30, 2001 Posted January 30, 2001 Is there any easy (and free!) way yo disable the Quit option in FMP on a Mac ? I have a quit button that I need the users to press, rather than them using the menu or apple-q. Thanks
Newbies Artana Posted January 30, 2001 Newbies Posted January 30, 2001 Run the same script when closing file. It will give same result. It can be set on the document preferences on edit menu. Artana
Phil Posted January 30, 2001 Author Posted January 30, 2001 No it won't give the same results if you are trying to validate their entries. I have a quit button that check a record to see that all appropriate fields are completed....if they are, then the program quits....if they aren't then the user gets informed. Choosing to run this script on closing does not solve the problem....as you cannot abort the "quit" that FMP is going through. It attempts to report the errors, but by the time it does, FMP is shutting down.
yafreax Posted January 30, 2001 Posted January 30, 2001 use the following in your start up script: Allow User Abort [Off] Loop Pause/Resume Script [] End Loop this will not let the user quit filemaker. You should also hide the status bar and the only 2 ways to stop this is to A. Force quit (big no-no anyway) or B. a script that halts this script. make sure you create a halting script and put the button somewhere before you try this so that you dont have to force quit. I would also put it in an if statement so that if you open it, that part of the script won't run. When using other scripts, use the "Pause current script option" (under define button) unless it means going to a different file, then you will need to use the Halt Script or Exit Script options. This also means that EVERYTHING you want to allow them to do has to be done by a button, which is generally a good idea anyway. Just play with it. Jeremy
Recommended Posts
This topic is 8968 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