PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Select item in editable combobox
Select item in editable combobox
Iniciado por christiaan.bollen, 09,sep. 2011 11:13 - 1 respuesta
Miembro registrado
8 mensajes
Publicado el 09,septiembre 2011 - 11:13
I'm new to windev. I use windev 16.

I want to select a item in a editable combobox when I open the window.
The content of the combobox is from a file. Then I want to select a specific item by default. I use this code but it doesn't work:

intRank is int = ListSeek(COMBO_Leverancier,leverancier.leverancierID)
ListSelectPlus(COMBO_Leverancier,intRank)


So first I search what rank the item I want to display has. The rank is 2 for example. I checked with trace if the rank is ok.
Then I use ListSelectPlus to select that rank in the combobox, but the combobox stays empty.

Can someone help me with this problem?
Publicado el 15,diciembre 2015 - 15:03
Hi , your code real is:
intRank is int = ListSeek(COMBO_Leverancier,leverancier.leverancierID)
COMBO_Leverancie=COMBO_Leverancie[intRank]

in case that combo contain a table may calling.