col 목록 상자에 목록을 추가하려면 어떻게 해야 하나요?구문이 혼란스러워서 아래와 비슷한 것을 시도해 보았습니다. 하지만 작동하지 않습니다.
colbox << append(dt << mylist);
고급 통계 모델링소비자 및 시장 조사실험 설계Re: 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 );Re: 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] );
);
Re: col 목록 상자에 목록을 어떻게 추가합니까?For 루프에 오류가 있습니다.그것은해야한다
for(i=1, i<=3, i++,
lb << Append( theList[2][i] );
);
Re: 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] );