cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
Ken697
Level I

標準化列名稱如何用變數取代求解

//新增周標準化
weekEMC_HF_C_12_0 = Data Table( "周_EMC_HF_C_12um" ) << Get Column Names( string );
weekEMC_HF_C_12 = {};
//少一周={:"2022W38"n,:"2022W40"n,:"2022W41"n};
For( j = N Items( weekEMC_HF_C_12_0 ), j >= (N Items( weekEMC_HF_C_12_0 ) - 5), j--,
Insert Into( weekEMC_HF_C_12, weekEMC_HF_C_12_0[j] )
);
Try(
Local( {old dt = Current Data Table()},
Current Data Table( Data Table( "周_EMC_HF_C_12um" ) );
For Each( {col, index}, weekEMC_HF_C_12,
col << Set Property( "Spec Limits", {LSL( 0.72 ), Show Limits( 0 )} )
);
Current Data Table( old dt );
)
);
weekEMC_HF_C_12 = {"2022W40", "2022W38", "2022W29", "2022W28", "2022W27", "2022W26"};

無法執行

TRY(Local( {old dt = Current Data Table()},Current Data Table( Data Table( "周_EMC_HF_C_12um" ) );
	For Each( {col, index},weekEMC_HF_C_12,
		col << Set Property("Spec Limits",{LSL( 0.72 ), Show Limits( 0 )}));
	Current Data Table( old dt );
););

要如何修改成weekEMC_HF_C_12 ={:“2022W38”n,:“2022W40”n,:“2022W41”n}的顯示方式

\\ =>可執行 {:"2022W38"n,:"2022W40"n,:"2022W41"n};

\\ =>無法執行{"2022W40", "2022W38", "2022W29", "2022W28", "2022W27", "2022W26"};

 

0 REPLIES 0