Is there any way to retrieve the items of a combobox as a comma separated string, so I can manipulate the items during runtime?
I populate a combobox with sound files in a folder, working all ok. Then I want to add other items to this combobox, like this:
soundfile1.wav
soundfile2.wav
… (all populated from the sound files in a folder), then I want to append for example:
Sine
Square
Saw
live_sampled_sound1
live_sampled_sound2
… etc
I managed to kludge my way around by retrieving the items one by one, building a string with comma separated items, then appending my other items to this string and using the identchannel to set the contents of the combobox. One problem is that during retrieval of the items, I trigger the actions that the combobox should trigger during normal operation, and also the whole process seems to offset the contents(items) by one, so that I select “soundfile2.wav” but the combobox sends out the string “soundfile1.wav”. I guess I can kludge my way further, but it seems I’m going about it in a very backwards fashion. Hoping there is an easier way. Suggestions welcome!