Ver Mensaje Individual
  #3  
Antiguo 02-12-2010
Avatar de defcon1_es
defcon1_es defcon1_es is offline
Miembro
 
Registrado: mar 2004
Ubicación: Cuenca - España
Posts: 533
Reputación: 21
defcon1_es Va por buen camino
Ampliando la solución que te ha dado ecfisa:

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
var
  i, r, c: Integer;
begin
  r := 0;
  c¨:= 0;
  for i := 0 to ComponentCount-1 do
  begin
   if Components[i] is TComboBox 
   then begin
      r := r + StrToInt(TComboBox(Components[i]).Text);
      c := c + 1;
   end;
  end; 
  nfinal.Text := FormatFloat('#,##0.##', r/c);
end;
__________________
Progress Openedge
https://abevoelker.com/progress_open...dered_harmful/


Delphi forever...
Responder Con Cita