PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → single initialization of combo box in a looper
single initialization of combo box in a looper
Iniciado por Bullo MARCO ( Marco, nov., 25 2011 1:43 PM - Sem resposta
Membro registado
3 mensagems
Publicado em novembro, 25 2011 - 1:43 PM
Good morning,
I am developing a web based application for booking.
I have a problem using the combo box in a looper.
I want in each row of the looper, the combo box will be initialized by programming according to the choices made by the user.
In the "description" of the looper there isn't an attribute that links the values of the combo box list.

I use thi code after the "LooperAddLine(LOOP_distribuzione,3,4,3,1,1,Grayed,3)" :
FOR i = 1 TO COMBO_camere1
ListAdd(LOOP_distribuzione.COMBO_n_camere,""+i)
END
FOR i = 0 TO COMBO_persone1
ListAdd(LOOP_distribuzione.COMBO_n_adulti,""+i)
END
FOR i = 0 TO COMBO_persone1
ListAdd(LOOP_distribuzione.COMBO_n_ragazzi,""+i)
END
FOR i = 0 TO COMBO_persone1
ListAdd(LOOP_distribuzione.COMBO_n_bambini,""+i)
END
FOR i = 0 TO COMBO_persone1
ListAdd(LOOP_distribuzione.COMBO_n_infant,""+i)
END

but it is not what I want, because it initializes each line of the looper in the same way!
Furthermore, using the code mentioned above, at the creation of each new line of looper, all the combo box were reset.