October 1, 200322 yr 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.
October 1, 200322 yr 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
October 1, 200322 yr Author Thanks. What error code would this be for this situation; "User cancel" or 1?
October 1, 200322 yr 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.
October 1, 200322 yr 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.
Create an account or sign in to comment