mehronx Posted October 1, 2003 Posted October 1, 2003 What is the best way to avoid the dialogue "Script has been cancelled, continue or abort" and being left in layout limbo? I made a print script that ends like this is the user cancels the print in dialogue.
andygaunt Posted October 1, 2003 Posted October 1, 2003 Use Set Error Capture [on] at the beginning of your scripts. With this turned on it is now upto you to capture the error messages and show dialogs when needed. this is done by using the Status(CurrentError) = x Of course, if you just don't want to show the error message you do not need to worry. HTH
mehronx Posted October 1, 2003 Author Posted October 1, 2003 Thanks. What error code would this be for this situation; "User cancel" or 1?
andygaunt Posted October 1, 2003 Posted October 1, 2003 For all FileMaker Error codes, go to the help menu and choose Status Functions. Then open the help for Status(CurrentError) This will list all the codes you can trap for.
Vaughan Posted October 1, 2003 Posted October 1, 2003 I use Allow User Abort [off] at thr start of each script to prevent users from cancelling. It appears to me that Allow User Abort [off] only traps error=1 (user cancelled operation) which allows FMP to trap for all the other errors. Set Error Capture traps all errors.
Recommended Posts
This topic is 7727 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