Tema: Consulta
Ver Mensaje Individual
  #8  
Antiguo 01-03-2012
Avatar de escafandra
[escafandra] escafandra is offline
Miembro Premium
 
Registrado: nov 2007
Posts: 2.197
Reputación: 20
escafandra Tiene un aura espectacularescafandra Tiene un aura espectacular
Lo que Caral quiere decir es algo como esto:
Código:
  TLabel *Label;
  for(int i = 1; i<ComponentCount; i++){
    Label = static_cast<TLabel*>(FindComponent("Label" + IntToStr(i)));
    if(Label) Label->Caption = IntToStr(i);
  }

Saludos.
Responder Con Cita