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.

Crazy Values for Get (RecordNumber)

Featured Replies

A simple but baffling script bug in FM 8 Advanced:

In a found set, Data Viewer reports that the last record is Record 1, and the first 3 records are all Record 0. That doesn’t make sense in any universe.

This is the sequence of single-step scripts I execute, and what Data Viewer displays.

Go to Record/Request/Page [Last]

Data Viewer shows Get(RecordNumber) = 1

Go to Record/Request/Page [First]

Data Viewer shows Get(RecordNumber) = 0

Go to Record/Request/Page [Next]

Data Viewer shows Get(RecordNumber) = 0

Go to Record/Request/Page [Next]

Data Viewer shows Get(RecordNumber) = 0

That’s right. Data Viewer says the first record in the found set is Record 0, and the next records in the set also are Record 0. (By the way, each time I execute a script or a script step, I click on Refresh Values, so it’s not an update problem.)

Have I found a bug? A corrupted file?

A calculation field with Get(RecordNumber) must be UNSTORED.

The results will then be the same as just having @@ in a text box.

  • Author

A calculation field with Get(RecordNumber) must be UNSTORED.

But there is no field involved at all. I merely add Get (RecordNumber) to the Data Viewer and monitor its value as I step through the records.

That's what's puzzling. It's just the pure value being reported each time by Data Viewer.

Works for me.

  • Author

Update: I deleted Get(RecordNumber) from the Data Viewer list, then immediately re-added it. Data Viewer began reporting the record number correctly once again. About an hour later, it started reporting incorrectly. Sounds like a memory leak or something. I'm going to report it to FileMaker.

Thanks for taking the time, though.

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.