It could be that it just looks like the values are set correctly, when in reality they are not. Try adding LSL, Target and USL when you are setting the limits.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
x = 51;
y = 100;
i = 1;
colListLimits = {"height", "weight"};
Eval(
Eval Expr(
dt:(Column(colListLimits[i])) << Set Property("Spec Limits", {LSL(Expr(y - x)), Target(Expr(x)), USL(Expr(y))})
)
);
dt:(Column(colListLimits[i])) << get property("Spec Limits");
To see what type of syntax to use, set limits manually to some column
Right click on the column header after adding the limits and select Copy Column Properties
and paste the results somewhere
Add Column Properties(
Set Property("Notes", "Explore data adventurously"),
Set Property("Spec Limits", {LSL(11), USL(22), Target(15), Show Limits(1)})
)
-Jarmo