Ryudoo19 de Julio del 2004
Pregunta
Como puedo recorrer los items que contiene un ComboBox, aparte del combo box tengo dos CommandButton uno dice siguiente y el otro anterior al presionar los botones debo ir recorriendo los items del ComboBox y mostrarlos en el mismo ComboBox
dradana200319 de Julio del 2004
ME PARECE QUE CON UN COMBO NO NESECITAS DESPLAZARTE LOS LOS ITTEM, RECUERDA QUE EL COMBO TIENE UNA LISTA DESPLEGABLE QUE EL USUARIO PODRA BUSCAR ALLI LOS VALORES QUE LE CONVENGA
Cristian19 de Julio del 2004
Hola
Private Sub Avanzar_Click()
'Con esto avanzas un ittem
Combo1.ListIndex = Combo1.ListIndex + 1
End sub
Private Sub Retroceder_Click()
'Con esto retrocedes un ittem
Combo1.ListIndex = Combo1.ListIndex - 1
End Sub
Saludos
Edy P?z19 de Julio del 2004
Private Sub Avanzar_Click()
if Combo1.Listindex+1 < Combo1.ListCount then
Combo1.ListIndex = Combo1.ListIndex + 1
end if
End sub
Private Sub Retroceder_Click()
if Combo1.Listindex <> 0 then
Combo1.ListIndex = Combo1.ListIndex - 1
end if
End Sub