Ver Mensaje Individual
  #2  
Antiguo 15-11-2007
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.070
Reputación: 32
jhonny Va camino a la famajhonny Va camino a la fama
Hice la siguiente prueba y me a funcionado bien... espero que sea eso lo que necesitas :

Código Delphi [-]
var
  i :Integer;
  Acumulado :Extended;
begin
  Acumulado := 0;
  for i := 0 to ListView1.Items.Count -1 do
  begin
    if ListView1.Items[i].Checked then
    begin
      Acumulado :=  Acumulado + StrToFloat(ListView1.Items[i].Caption);
    end;
  end;
  ShowMessage(FloatToStr(Acumulado));
end;
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita