How to change items in ListBox to array?I am using application builder. Consider the name for this ListBox as "ListAll". How to change the ListBox Items to an array such as {"Item1", "Item2"}? Currently what I can see, this ListBox will return "List1" instead of desired array.

The second question, if able to generate an array from this ListBox, how to pass ListPlot data to param? The param should contains {"Item1"} or {"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;Thanks.
Data TableOtherScriptingRe: How to change items in ListBox to array?Hi,
For the ListBox issue, you may want to look at the MaxSelected parameter: I think that by default (if omitted) it only returns 1 selected item.
Best,
TSRe: How to change items in ListBox to array?I think you are looking for the Get Items message. Here is an example that might help:
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"}