Listbox multiple selections to Variable Array - Forum

Forum Navigation
You need to log in to create posts and topics.

Listbox multiple selections to Variable Array

Hi all,

There is any way to get all multiple selections of a listbox into an variable array ?

Example:

In a listbox i have: apples, bananas, dogs, cats if a select only cats and dogs i want that selection goes to an array in order to parse that array and do something for each element of the array.

At this moment i only get one variable with all selections inside but it's not an array, it's only one variable with all the selections in it like only one variable.

Regards,

Sam

Hello,

https://winhelp.visualneo.com/ListBoxComboBoxTools.html
https://winhelp.visualneo.com/Strings.html

You need one line in change-action of the listbox:

StrParse "[ListBox1]" "[#13]" "[SelectedItems]" "[ItemCount]"

Then you have your array.

Regards

 

Thank you very much Hans.

Regards,

Sam