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.

Not exiting loop

Featured Replies

Hi Im having trouble exiting my loop. Can any one help?

I am trying to create an entry which ISN'T one a value list that is assigned to that same global field. (gDuplicate Section Check)

please see the attachment for screen shot of scripting window.

loop.jpg

Yep! The screen shot is too small to read so FMP can't tell when to go. (Probably from Qld!)

Now I'll try to be helpful - watch out!

Don't you need to store "Last error" somewhere in case it changes?

  • Author

well yes the screen is hard to read but looks fine if you download it.

I'll look at storing the error code and see if that makes a difference. I assumed the error code stayed until it was replaced by something by another one.

FM Help says, Get(LastError) "returns a number representing the error, if any, in the execution of the most recently executed script step." So each script step updates the LastError. If you run, say,

Export Records

Loop

If [Get(LastError)]

there should never be an error since the Loop step produces no error. So you would want to capture the error in a global immediately following the Export step.

I found this yesterday, on a Canadian web page about Aussie beer... it's got nothing to do with your problem but might help explain OldFogie's post above...

xxxxad.jpg

XXXX because we can't spell Beer.

Go Queenslander!

  • Author

excellent Vaughan

(and im not from QLD btw smile.gif )

Vaughan, how do I get a copy? Forget the FMP stuff.

Apologies to AJ for the geographical insult.

A copy of the image fogey? Right click on the image and choose "save picture as"

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.