Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 5 Jahren, 2 Monaten
Letzter Beitrag:
vor 5 Jahren, 2 Monaten
Beteiligte Autoren:
Al, Alexandre Leclerc, Allard, Erik Schwarz

Deleting Combo Box Entry

Startbeitrag von Erik Schwarz am 05.05.2013 08:35


let's have a Combobox control with Input enabled and history and stored enabled (all done in 7 Tabs)

With each new entered value you can select one of that entries by pulldown. So far, so good. But how can I delete just one of that entries previously done, so that the choice is reduced the next time using that control? Delete button erases the currently selected value but does not delete the value in the history.

Thanks for any hints.



Hello Eric

It does make it easier to answer questions if you start your topic with the Windev product and version as the answer will often be different. The common format on this forum is [WD17] or [WB17] or [WM17]

Now onto your question: I would guess (and it is a guess) that PCSoft would store this information in either the registry or whatever means you have setup for the saving of "stored" information such as table positions and columns etc, so it could be in an ini or xml file if you have nominated that mode of storage.

Have a look at "Persistent values" or the SaveParameter() function for more info.


von Al - am 05.05.2013 13:27
Do you use windev ?

How do you fill the combo. Do you do it by programming or is it connected to a file. If connected to a file you can try doing a listdisplay(). after saving the adding or deleting. This would refresh the control.


von Allard - am 06.05.2013 21:08
Hello Allard

The comboboxes have a history provision to provide a list of previous selections and it is those entries that Erik is trying to remove. Its in the "Details" section of the combobox editor


von Al - am 07.05.2013 00:28
Hi Erik,

You have to do it manually. Look at SaveParameter() and you will see the registry that is use to save in GO and live mode.

This is exactly what WinDev uses to memorise the values of a COMBO. Get the list, change it manually and save it back. (In the French Version for your combo in the registry there is an entry named "ListeHistoriqueSaisie" which contains the list of elements separated by CR.)


So all you have to do is parse the list manually and save it back afterward. Then, to refresh the combo's list, use COMBO_Test..Content and assign it the new list.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 07.05.2013 12:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.