如何將 ListBox 中的項目更改為數組?我正在使用應用程序生成器。 將此 ListBox 的名稱視為“ListAll”。 如何將 ListBox Items 更改為數組,例如 {"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 中的項目更改為數組?嗨,
謝謝。 “獲取項目解決”問題和您的評論使您更容易理解該功能的工作原理。 真的很感激。
Re: 如何將 ListBox 中的項目更改為數組?所有的項目@ih指定在腳本指南中記錄。我強烈建議您花時間熟悉它。這是我在用 JSL 編寫時每天使用的東西,我從 90 年代開始就一直在使用 JMP
Re: 如何將 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"}
Re: 如何將 ListBox 中的項目更改為數組?你好,
對於 ListBox 問題,您可能需要查看 MaxSelected 參數:我認為默認情況下(如果省略)它僅返回 1 個選定項。
最好的,
TS