Tema: Sumar Label
Ver Mensaje Individual
  #2  
Antiguo 07-10-2006
Avatar de vtdeleon
vtdeleon vtdeleon is offline
Miembro
 
Registrado: abr 2004
Ubicación: RD & USA
Posts: 3.236
Reputación: 24
vtdeleon Va por buen camino
Saludos

Prueba con:
Código Delphi [-]
var
  I,N:Integer;
begin
  N:=0;
  for I := 0 to Self.ComponentCount - 1 do
    if Components[i] is TLabel then
      if TLabel(Components[i]).Caption='OK' then
      begin
        Inc(N);
      end;
  Edit1.Text:=IntToStr(N);
end;
__________________
Van Troi De León
(Not) Guía, Code vB:=Delphi-SQL, ¿Cómo?
Viajar en el tiempo no es teóricamente posible, pues si lo fuera, ya estarían aqui contándonos al respecto!
Responder Con Cita