無法為每列設定規格限屬性 (USL/LSL)dt = 當前資料表();
dt << Begin Data Update();
For( i = 9, i <= N Cols( dt ) - 1, i++,
col = Column( dt, i );
// 取得第二行和第三行的資料作為規格限
lowerLimit = col[2];
upperLimit = col[3];
show (lowerLimit);
show(upperLimit); // checked the log, the result is ok.
// 設定規格限屬性
col << Set Property( "Spec Limits", {LSL(lowerLimit), USL(upperLimit), Show Limits( 1 )} );
);
dt << End Data Update();




基礎資料分析與建模回覆:無法為每列設定規格限屬性 (USL/LSL)您必須評估列的值,以下是一個範例
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
lowlimit = 50;
highlimit = 100;
Eval(EvalExpr(
Column(dt, "height") << Set Property(
"Spec Limits",
{LSL(Expr(lowlimit)), USL(Expr(highlimit)), Show Limits(1)}
);
));
使用 Eval Insert、Eval Expr、Parse 和 Substitute 將一個表達式插入另一個表達式