☑ 很酷的新功能
☑ 可以幫助很多使用者!
☑ 刪除一些感覺像是「bug」的東西
很高興擁有
無人需要它
是什麼激發了這個願望清單請求?
當使用者重新命名列時,表格腳本會自動更新。
當使用者刪除表腳本中使用的列時,如果該列在列公式中使用,JMP 會警告使用者。
但是表格腳本會在沒有通知的情況下消失。
a) 使用者需要很長時間才能找出表格腳本死的原因。
b) 需要付出一些努力才能再次建立列(最壞的情況:無法再次建立列)
您希望看到什麼改進?
在刪除列之前,請檢查該列是否在表格腳本中使用 - 並顯示警告。
Names Default To Here( 1 );
Current Data Table() << copy table script( "no data" );
tableScript = Eval( Eval Expr( Parse( Expr( Get Clipboard() ) ) ) );
col_names = Current Data Table() << Get Selected Columns();
tableScriptList = Substitute( Name Expr( tableScript ), Expr( New Table() ), Expr( List() ) );
tableScriptList = Filter Each( {part}, tableScriptList, Head( Part ) == Expr( New Script() ) );
found = 0;
For Each( {col}, col_names,
For Each( {myScript}, tableScriptList,
If( Not( Is Empty( Eval( Eval Expr( Extract Expr( myScript, Expr( Name Expr( col ) ) ) ) ) ) ),
Caption( {100, 200}, "column \!"" || (col << get name()) || "\!" found in script: \!n" || Arg( myScript, 1 ) );
found = 1;
print("found!!!");
Wait( 1 );
)
)
);
If( Not( found ),
Caption( {100, 200}, "no column found.\!N ->cols can be deleted" );
Wait( 1 );
);
Caption( remove )
為什麼這個想法很重要?
想像一下有多少 JMP 使用者因「意外」刪除列而終止了表腳本。
切換到“安全模式”將使許多用戶免受同一問題的困擾。
其他願望