使用選定單元格的內容並將其用作新列的名稱。親愛的,我嘗試創建一個腳本,在其中使用單元格值或選定單元格的內容,並將其用作新創建列的名稱。
一般來說,我找不到用於復製或讀取所選單元格內容的腳本命令 - 也許很明顯我找不到它......
非常感謝您的幫助。
腳本回复:使用選定單元格的內容並將其用作新列的名稱。有關特定語法信息,請參閱腳本索引。 您可以查詢數據表以獲取當前選擇的行。 您也可以查詢以獲取當前選定的列。 您可以使用下標訪問數據表中的各個值:dataTable[row,column]。
回复:使用選定單元格的內容並將其用作新列的名稱。這裡有一些東西可以幫助您入門。
//Make an example table
dt=New Table( "Example",
Add Rows( 5 ),
New Column( "Column 1",
Character,
"Nominal",
Set Values( {"alpha", "beta", "gamm", "delta", "ice-cream"} )
)
);
//get the value of the first column in dt, at the 5th row
nnn=column(dt,1)[5];
//make a new useing the value obtained above
dt<<NEW column=""></NEW>