Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7727 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.