JMP 14.2 联机文档
发现 JMP
使用 JMP
基本分析
基本绘图
刻画器指南
实验设计指南
拟合线性模型
预测和专业建模
多元方法
质量和过程方法
可靠性和生存方法
消费者研究
Scripting Guide
JSL Syntax Reference
该帮助的版本不再更新,请参见
https://www.jmp.com/support/help/zh-cn/15.2
获取最新的版本.
Scripting Guide
•
Data Tables
•
Basic Data Table Scripting
• Prevent Changes to a Data Table
上一个
•
下一个
Prevent Changes to a Data Table
To prevent editing cells in the data table, use
Set Edit Lock
with the
Modify Cells
argument.
dt =
Open
(
"$SAMPLE_DATA/Big Class.jmp"
);
dt <<
Set Edit Lock
(
"Modify Cells"
);
To prevent adding or deleting columns and rows:
dt <<
Set Edit Lock
(
"Add Columns"
,
"Delete Dolumns"
);
dt <<
Set Edit Lock
(
"Add Rows"
,
"Delete Rows"
);
To get a list of data table operations that are locked, use
Get Edit Lock
:
dt <<
Get Edit Lock
();
{"Modify Cells", "Add Rows", "Delete Rows", "Add Columns", "Delete Columns"}
To allow a specific data table operation again, use
Clear Edit Lock
:
dt <<
Clear Edit Lock
(
"Modify Cells"
);
You can lock all three data table components (cells, columns, and rows) at once by using
Lock Data Table
.
dt <<
Lock Data Table
(
1
);