Ver Mensaje Individual
  #6  
Antiguo 29-04-2006
Avatar de Sotrono
Sotrono Sotrono is offline
Miembro
 
Registrado: abr 2004
Ubicación: Buenos Aires - Argentina
Posts: 396
Reputación: 21
Sotrono Va por buen camino
Cita:
Empezado por roman
¿Y no sería más sencillo usar IndexOf?

Código Delphi [-]

procedure TForm1.Button1Click(Sender: TObject);
begin
  if ListBox1.Items.IndexOf('Pepe') <> -1 then
  begin
    Edt1.Text := 'Encontrado';
  end;
end;

No conocía esa función, igual no creo que compile la linea Edt1.Text := 'Encontrado';
Responder Con Cita