Ver Mensaje Individual
  #3  
Antiguo 17-10-2005
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Código Delphi [-]
 procedure TForm1.Button1Click(Sender: TObject);
 var
   i: integer;
   total: integer;
 begin
   total := 0;
   for i := 0 to ListBox1.Count-1 do
   begin
     if ListBox1.Selected[i] then
       Inc(total);
   end;
   ShowMessage(IntToStr(total));
 end;
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita