從整個數據表中刪除“列表檢查”和“範圍檢查”屬性你好,
我需要循環遍歷 xml 導入數據表中的所有列,並刪除整個“列表檢查”和“範圍檢查”屬性。 我已經嘗試了幾次不同的迭代,但沒有任何效果對我有用。 這是一個非工作代碼的示例:
dt = current data table();
//********************\\
colNames = dt << get column names( string, character );
For( i = 1, i <= N Items( colNames ), i++,
Column(dt, i) << Delete Property("Range Check");
Column(dt, i) << Delete Property("List Check");
);這會產生以下錯誤消息。 任何解決此問題的幫助將不勝感激。 提供樣本數據。 謝謝!

自動化和腳本編寫回复:從整個數據表中刪除“列表檢查”和“範圍檢查”屬性嘗試這個
Names Default To Here( 1 );
dt = current data table();
// Open Data Table: big class.jmp
// → Data Table( "big class" )
//Open( "/C:/Program Files/SAS/JMPPRO/16/Samples/Data/big class.jmp" );
colNames = dt << get column names( string );
For Each( {col, index}, colNames,
Show( col );
Try(
As Column( col ) << delete property( "List Check" ) <<
delete property( "Range Check" )
);
);回复:從整個數據表中刪除“列表檢查”和“範圍檢查”屬性非常感謝,這正在工作!