Repeating variables not set when index is a variable
When assigning values to a repeating variable using variables for the index FM assumes the variable is not repeating thus ignoring the index.
The following works:
Set Variable [$$M; Value:1]
Set Variable [$$M; Value:2]
Set Variable [$$M; Value:9]
The following does not works:
$idxName = 1
$idxLabel = 2
$idxIcon = 9
Set Variable [$$M[$idxName]; Value:1]
Set Variable [$$M[$idxLabel]; Value:2]
Set Variable [$$M[$idxIcon]; Value:9]
Obviously 9 differnt repetitions 1 through 9 for variable $$M, that is $$M = 1; $$M = 2 ... $$M = 9
Each value is assigned to the variable $$M replacing the last value, No repetitions, just $$M with the last value assigned.
I cannot reproduce this issue.
Using FileMaker 12 and windows 7 I ran the script shown in the following screen shot. It displayed a list of values with the correct assigned values from each repetition.