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.

Halting loops

Featured Replies

hi...once in a whiloe when I'm testing script with a loop I'll goof and miss a step and create infinite loop, one that has no end. Is there a way to halt or exit the loop with keyboard commands? When this occurs I have to reboot the Mac to halt the loop.

thanks in advance.

pcourterelle

If you don't have Allow User Abort turned off, then you should be able to hit Escape (Cmd-. I believe for Mac) Otherwise, try closing the file, either by clicking on the file's X or using the Mac equivalent of Ctrl-W (File -> Close). This will often work to close a looping file.

Another good idea, especially if you have a Loop within a Loop, is to put a button on the layout (temporarily) with the script step "Halt Script." That'll stop it. Of course, one always remembers to create the button WHILE FileMaker is stuck in the loop :-]

It's good practice to put something like this:

Exit Loop If( Status (CurrentModifierKeys) = 1 and gDeveloperStatus = 1 )

...inside all loops. That way you can always get out by holding the shift key. In this example, gDeveloperStatus is simply a global field that allows you to "turn off" the exit ability if you don't want your users to have it. So you can leave the Exit Loop in all your scripts, and turn them all off or on at once by just clicking the gDeveloperStatus checkbox (which is sitting on your hidden "Developer" layout, naturally -- another good practice).

  • Author

Great ideas all...thanks

phil courterelle

calgary

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.