Hi
I would like to add a list box to my form and then have a button which when the user clicks it, will gather all the selections highlighted by the user in the list and turn them into a comma separated string.
Example, suppose my list contains the numbers 1 to 10, and the user selects 3 4 & 9 then the string would be
3, 4, 9
How do I go about this? I know I can use the ItemsSelected and ItemData functions to work through the list box and gather the data but how do I use this? Do I need to create an array and store all the value gathered in there beofre processing the string?
Thanks.
I would like to add a list box to my form and then have a button which when the user clicks it, will gather all the selections highlighted by the user in the list and turn them into a comma separated string.
Example, suppose my list contains the numbers 1 to 10, and the user selects 3 4 & 9 then the string would be
3, 4, 9
How do I go about this? I know I can use the ItemsSelected and ItemData functions to work through the list box and gather the data but how do I use this? Do I need to create an array and store all the value gathered in there beofre processing the string?
Thanks.