如何将列表附加到 col 列表框中?这个语法让我很困惑,我尝试了类似下面的方法。但是它不起作用。
colbox << append(dt << mylist);
高级统计建模消费者和市场研究实验设计回复:如何将列表附加到 col 列表框?这是我从 Scripting Index 中获取的示例,稍作修改以向您展示您想要的内容
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 );回复:如何将列表附加到 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 列表框?您的 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"}};
//Im trying to pull the second list from the list of lists
lb << Append( theList[2] );