Ver Mensaje Individual
  #4  
Antiguo 27-09-2012
memoferprof memoferprof is offline
Miembro
NULL
 
Registrado: sep 2012
Posts: 20
Reputación: 0
memoferprof Va por buen camino
Exclamation estas abordando mal tu funcion

veo que estas queriendo agregar datos a un listview

pero la manera correcta seria algo asi:

Código Delphi [-]
$this->ComboAgente->AddItem('-- Elija Agente', null, 0);
      for($this->QueryAgente->first();  ! $this->QueryAgente->EOF; $this->QueryAgente->next())
      {
         $this->ComboAgente->AddItem($this->QueryAgente->agente, null, $this->QueryAgente->id_agente);
      }
este ejemplo agrega datos de una base de datos a un combobox, que no es diferente a un listview.
ComboAgente es el nombre del combobox
AddItem es la funcion que agrega y siempre va pegada al componente.
Responder Con Cita