Come modificare gli elementi in ListBox in array?Sto usando il generatore di applicazioni. Considera il nome di questo ListBox come "ListAll". Come modificare gli elementi ListBox in un array come {"Item1", "Item2"}? Attualmente quello che posso vedere, questo ListBox restituirà "List1" invece dell'array desiderato.

La seconda domanda, se in grado di generare un array da questo ListBox, come passare i dati ListPlot a param? Il parametro dovrebbe contenere {"Item1"} o {"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;Grazie.
Tabella datiAltroScriptingRi: Come cambiare gli elementi in ListBox in array?Ciao,
Per il problema ListBox, potresti voler guardare il parametro MaxSelected: penso che per impostazione predefinita (se omesso) restituisca solo 1 elemento selezionato.
Migliore,
TSRi: Come cambiare gli elementi in ListBox in array?Penso che tu stia cercando il messaggio Ottieni articoli.Ecco un esempio che potrebbe aiutare:
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"}