如何將清單附加到 col 列錶框?文法讓我感到困惑,我嘗試了類似如下的內容。然而它不起作用。
colbox << append(dt << mylist);
進階統計建模消費者與市場研究實驗設計回复:如何將列表附加到 col 列錶框?無需循環:
Names Default To Here( 1 );
New Window( "Example",
fontobj = lb = List Box({},
width( 200 ),
max selected( 2 ),
nlines( 6 )
)
);
theList = {{"First Item", "Second Item", "Third Item"},{"Fourth Item", "Fifth Item", "Sixth Item"}};
//Im trying to pull the second list from the list of lists
lb << Append( theList[2] );回复:如何將列表附加到 col 列錶框?您的 For 循環有誤。它應該是
for(i=1, i<=3, i++,
lb << Append( theList[2][i] );
);
回复:如何將列表附加到 col 列錶框?這工作正常 - 在我的應用程序中,我有一個列表列表,但由於某種原因它不會工作。 請參閱下面稍微編輯過的代碼。
Names Default To Here( 1 );
New Window( "Example",
fontobj = lb = List Box({},
width( 200 ),
max selected( 2 ),
nlines( 6 )
)
);
theList = {{"First Item", "Second Item", "Third Item"},{"Fourth Item", "Fifth Item", "Sixth Item"}};
<BR />//Im trying to pull the second list from the list of lists
for(i=1, i=3, i++,
lb << Append( theList[2][i] );
);
回复:如何將列表附加到 col 列錶框?這是我從腳本索引中獲取的一個示例,稍作修改即可向您展示您想要的內容
Names Default To Here( 1 );
New Window( "Example",
fontobj = lb = List Box({},
width( 200 ),
max selected( 2 ),
nlines( 6 )
)
);
theList = {"First Item", "Second Item", "Third Item"};
lb << Append( theList );