Message 1 of 8
Combobox.additem create 2 new items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Everything is in the title...
I've created a combobox on a ribbon. This combobox contains 3 values, for example A, B, C.
I need to add a new value : D, to this combobox.
I use combobox.additem ("D")
The result is : "A, B, C, D, D" instead of "A, B, C, D"
The value combobox.listcount is 3 before the Additem, and is 4 after the Additem, but in the list 2 lines are added...
If I run "combobox.removeitem(combobox.listcount)", to remove the last line, the 2 last lines are removed, and listcount is only decreased by 1