We are trying to assign labels of integer value to processors via FlexScript. See code below.
We accidentally ran this code multiple times. Now, the type of the label is an array with multiple duplicate integers.
We want to revert back to the original integer value we assigned. We also want these labels to be static. How should we go about this?
See the original code:
clearconsole;
int numRows = Group("Sourcing Group").length;
Array myGroups = ["Sourcing Group", "Conditioning Group", "Finishing Group", "Packing Group", "Distribution Group"];
for (int i = 1; i <= myGroups.length; i++) {
for(int j = 1; j <= numRows; j++){
Object processor = Group(myGroups[i]);
processor.location = j;
print(j);
}
print(i);
}