ListBox의 항목을 배열로 변경하는 방법은 무엇입니까?응용 프로그램 작성기를 사용하고 있습니다. 이 ListBox의 이름을 "ListAll"로 간주합니다. ListBox 항목을 { "Item1", "Item2"}와 같은 배열로 변경하는 방법은 무엇입니까? 현재 내가 볼 수있는 것은이 ListBox가 원하는 배열 대신 "List1"을 반환합니다.

두 번째 질문은이 ListBox에서 배열을 생성 할 수 있다면 어떻게 ListPlot 데이터를 param에 전달합니까? 매개 변수에는 { "Item1"} 또는 { "Item2"}가 포함되어야합니다.
ButtonAddPress=Function({this},
name = this << Get Button Name;
ListPlot << Append(ListAll << Get Selected);
);
ButtonRemovePress=Function({this},
name = this << Get Button Name;
ListPlot << Remove Selected;
);
ButtonRunPress=Function({this},
name = this << Get Button Name;
param = ListPlot;감사.
데이터 테이블다른스크립팅Re : ListBox의 항목을 배열로 변경하는 방법은 무엇입니까?안녕하세요,
ListBox 문제의 경우 MaxSelected 매개 변수를 살펴볼 수 있습니다. 기본적으로 (생략 된 경우) 선택한 항목 1 개만 반환한다고 생각합니다.
베스트,
TSRe : ListBox의 항목을 배열로 변경하는 방법은 무엇입니까?항목 가져 오기 메시지를 찾고있는 것 같습니다.다음은 도움이 될 수있는 예입니다.
names default to here(1);
nw = new window("test",
lb = list box({"Item1", "Item2"})
);
//Get all items
lb << Get Items;
// Returns: {"Item1", "Item2"}
//Select the first item
lb << Set Selected(1);
//Get selected parameter
lb << Get Selected;
// Returns: {"Item1"}