此代碼應該將每個名稱添加到列錶框中,但它不起作用。 它與數據類型有關嗎?
另外,如果您想知道為什麼我使用第一個元素,那是因為我想為 EG -> col[2] = column(dt, "height"); 填充該列表中的其他列。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
col = {};
col[1] = column(dt, "name");
New Window( "Col List Box Example",
LstBox = Col List Box(, width( 250 )),
for(i=1, i<= N Rows(dt), i++,
LstBox << append(Eval(col[1][i]));
),
);