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.

Exit after last... Not Working

Featured Replies

This script deletes duplicates... except if the duplicates are the last records in the table.

If the last "Go to Record" step is inside the "If" statement, this script deletes all of the last records.

If the last "Go to Record" step is outside the "If" statement, it leaves one duplicate!

Neither outcome is good.

Any ideas?

Delete Duplicates

Sort Records [ Restore; No dialog ]

Go to Record/Request/Page [ First ]

Set Variable [ $ID; Value:Table01::ID ]

Go to Record/Request/Page [ Next ]

Loop

If [ Table01::ID = $ID ]

Delete Record/Request [ No dialog ]

Else

Set Variable [ $ID; Value:Table01::ID ]

End If

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

Sort Records [ Restore; No dialog ]

Go to Record/Request/Page [ First ]

Loop

If [ Table01::ID = getNthRecord( Table01::ID; get( recordNumber) -1) ]

Delete Record/Request [ No dialog ]

Go to Record/Request/Page [ Previous; NOT Exit after last]

End If

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

Delete.fp7.zip

Edited by Guest

The looping could be completely avoided or rather substituted with a recursive script.... but the efficiency of the algorithm largely depends on the degree of contamination.

--sd

Delete_sd.zip

  • Author

You're right! I forgot all about "nth record".

Thanks again.

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.