Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trapping a cancelled script?

Featured Replies

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.

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

  • Author

Thanks. What error code would this be for this situation; "User cancel" or 1?

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.

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.