ListBoxの項目を配列に変更するにはどうすればよいですか?アプリケーションビルダーを使用しています。 このリストボックスの名前を「ListAll」と見なします。 ListBoxアイテムを{"Item1"、 "Item2"}などの配列に変更するにはどうすればよいですか? 現在私が見ることができるものでは、このリストボックスは目的の配列の代わりに「List1」を返します。

2番目の質問、この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の問題については、MaxSelectedパラメーターを確認することをお勧めします。デフォルトでは(省略した場合)、選択したアイテムを1つだけ返すと思います。
ベスト、
TSRe:リストボックスの項目を配列に変更するにはどうすればよいですか?GetItemsメッセージを探していると思います。これが役立つかもしれない例です:
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"}