Is there a way to use a listbox with the ubound() method that you can use with an array? If not, I know you can store stuff in an array, and then do the following line to feed the items from the array into the listbox:
listbox.dataSource = myArray, but you cant go the other way:
myarray = listbox.dataSource.
I have a section of code where the user can input certain strings into a listbox, and then hit "go" and make the program do certain things based on those strings. I want to use a loop to loop through the items in the listbox, as there may be 1 item there, or there may be 10 in in it.
myarray = listbox.dataSource.
I coded this line in the code, and it executed just fine, but nothing happened as there was 2 strings of text in my listbox and they did not go to my array.
listbox.dataSource = myArray, but you cant go the other way:
myarray = listbox.dataSource.
I have a section of code where the user can input certain strings into a listbox, and then hit "go" and make the program do certain things based on those strings. I want to use a loop to loop through the items in the listbox, as there may be 1 item there, or there may be 10 in in it.
myarray = listbox.dataSource.
I coded this line in the code, and it executed just fine, but nothing happened as there was 2 strings of text in my listbox and they did not go to my array.