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.

Incremental field names within script?

Featured Replies

  • Newbies

Hi everyone,

I am trying to write a Filemaker 9 script that accesses a group of text fields that are named with sequential numbers.

Example:

Item1

Item2

Item3

Is there a way to read data from these fields sequentially by calculating the field names? I was hoping to do something like:

TableName::Item$LoopNumber

The above doesn't work, however. Is there any way to do this in filemaker? Thanks!

Try something like:

GetField ( "TableName::Item" & $LoopNumber )

  • Author
  • Newbies

Works perfectly, thanks for the help!!

Is there an equivalent function to GetField to save new field contents?

I am afraid I don't understand the question.

lizard,

There's no straight-up equivalent for a SetField() inverse of what you seek, but there are a number of tricks that people have posted here. One that I've used (if you have 8.5 or later) is to calculate the field name and pass it to GoToObject(), then use SetField() without specifying the target field (since you're already where you need to be via GoToObject() ). The one catch is that you have to give object names to each of the fields you want to use.

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.