Jump 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.
Juggernaut

Featured Replies

Hi,

Just getting into FM 8. Some really nice changes. I love variables, but I'm confused on one point and the documentation is of no help.

In the SetVariable dialog box there is a field for repetition. Does this mean the variable can be repeating? If so, this really makes it a very useful thing in that you can create arrays. But I can't seem to make it work this way... :)

Or does this refer to the repetion number of a field that you are using to set the value of the variable? If this is the case it seems like this could be accomplished with the getRepetition() function, and is a lot less useful.

Any clarity anyone can provide will be most appriciated.

Thanks,

Dan

This is explained in the help, under Set Variable script step:

"Repetition is the repetition (index) number of the variable you want to create."

  • Author

Thanks. That's what it seemed to be indicating. I guess I'm doing something wrong then. For example if I create a script:

Set Variable [$$RepeatingVar ; Value: "A"]

Set Variable [$$RepeatingVar [2] ; Value: "B"]

Show Custom Dialog[

GetRepetition($$RepeatingVar;1) & ", " &

GetRepetition($$RepeatingVar;2)

]

The dialog box returns A, A. Why isn't it returning A, B?

Thanks,

Dan

GetRepetition() expects a repeating FIELD as the first argument - so I am surprised it returns anything with a variable. However, this syntax works:

$$RepeatingVar[2]

  • Author

Thanks. That's what the documentation never gets around to -- how to access the data.

Dan

Yes. But I am afraid you won't find repeating variables very useful. They do not behave like repeating fields. For example, there doesn't seem to be a way to add, or multiply, 2 repeating variables in a single step.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.