Page 1 of 1

Need hlp with repeating fields plz

PostPosted: Wed Oct 12, 2005 11:09 am
by LuveRForums
Hi every1

Nver really had much for them until today.

But cant seem to make heads or tales of how they work.

Can someone explain how to store info into then. Into a specific repeatition. Like how do i store into : TestField[1] using script.

Same thing for getting the info bck.

The one giving most problem in the storing of the info in the right field and the right repatition.

Thx alot!!

PAtrick

PostPosted: Wed Oct 12, 2005 1:27 pm
by John Sindelar
Oft' maligned, repeating fields can be really useful. Here are a few things to keep in mind...

You can set 'em and get 'em using the repetition number in brackets after the field name: repeatingField[number]

You can also use GetRepetition ( Field ; Number )

When using calculations involving repeating fields, any non-repeating field needs to be wrapped in the Extend() function. Such as: Extend ( Qtantity) * Price[2].

Best of all, you can use Get(CalculationRepetitionNumber) to have your calcs behave diffferently depending on which rep of the calc field is showing.

Hope that helps,