What is the syntax for extracting data from a list inside a for loop in a formula editor? I wrote something like this, but it shows an error. Can anyone fix this?
Local NumberVar i; Local NumberVar intCount := Count({FOODMASTER.FOOD_SORT}); For i := 1 to intCount Do ( If (i = 1) Then {TMPMONTHLYDETAIL.TMP_QTY}[i]; Else If (i > 1) Then Exit For; i := i + 1; );
Where {FOODMASTER.FOOD_SORT} is an int data type and {TMPMONTHLYDETAIL.TMP_QTY} is decimal.
source share