Amigos, quisiera intentar esta misma formula pero con otro componente, con un RADIOGROUP, he intentado cambiarla pero me salta un error, podrian darme una mano con esto...
Código Delphi
[-] r := 0;
c:= 0;
for i := 0 to ComponentCount-1 do
begin
if (Components[i] is TAdvOfficeRadioGroup) and (TAdvOfficeRadioGroup(Components[i]).Items > '') then
begin
r := r + StrToInt(TAdvOfficeRadioGroup(Components[i]).Items);
c := c + 1;
end;
end;
nfinal.Text := FormatFloat('#,##0.##', r/c);
las variables estan declaradas, todo igual... pero me salta un error!
Agradezco su ayuda!