Ver Mensaje Individual
  #15 (permalink)  
Antiguo 29/09/2011, 11:57
Avatar de rikakashi
rikakashi
 
Fecha de Ingreso: julio-2011
Mensajes: 226
Antigüedad: 12 años, 10 meses
Puntos: 33
Respuesta: llenar list box

Código vb:
Ver original
  1. dim i,j,k as integer
  2. k=0
  3. for i = 0 to  contactsListBox.Items.Count - 1
  4. for j =0 to DS.tables.rows.count - 1
  5. if (contactsListBox.selectitem= i) =DS.tables(0).rows(j).item(0) then
  6. listbox2.items.insert(k,dato a agregar)
  7. k+1
  8. endif
  9. next j
  10. next i
__________________
la programación es tan grande como la imaginación (+.+)