Jump to content

Repeating Fields

This topic is 5595 days old. Please don't post here. Open a new topic instead.

Recommended Posts

... Could someone please explain to me how the heck you use these things, how you access data in particular repetitions, how calculations in different repetitions of a field are evaluated, if you enter different calcs into different reps of a field... just plain old confused - i mean, there's something in FM i don't know how to use at all - even if it is outdated in most cases - i'm sure it still has some uses.



Link to comment
Share on other sites

Think of a repeating field as an array. There are a set number of slots for holding data, and they can be accessed by their address (or index). The syntax for accessing the value in a particular repetition is:

GetRepetition(RepeatingField; index)

or (since FM7):(


For setting a particular repetition, you'd need to use the Repetition option of the target field in the script step you're using. In FM8 and later, you can dynamically choose the target repetition with the optional Repetition calc.

Repeating fields aren't very useful for data storage, but they are still used for storing values for utility purposes (like graphic constants), and sometimes for calculating results that are easier to resolve with the repeating field's get(CalculationRepetitionNumber) iterative properties (FM7 or later).

For an example of repeating fields used for utility purposes (with the repetition calc), check my Progres Bar example here:


Hopefully it won't flash at you too much.

Link to comment
Share on other sites

This topic is 5595 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

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