I use the C++ Builder 6.
When I change ItemLIst in ComboBox, ItemIndex is dumped.
How to make that an old value in ItemIndex keep automatically.

I think you are asking when you add a string to the combo box the currently selected string becomes unselected causing ItemIndex to be invalidated ? If that is true then you will want to save the currently selected string in a local variable in your function, add the string, then call SelectString() to reselect the item.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.