Ver Mensaje Individual
  #5  
Antiguo 02-04-2007
BEPAI BEPAI is offline
Miembro
 
Registrado: feb 2007
Posts: 19
Reputación: 0
BEPAI Va por buen camino
Encontré esto:

Código Delphi [-]
 
{The following example creates 20 edit boxes, using FindComponent with the edit box name to access each newly created edit box.}
procedure TForm1.Button1Click(Sender: TObject);
var
  i: Integer;
const
  NamePrefix = 'MyEdit';
begin
  for i := 1 to 20 do begin
    TEdit.Create(Self).Name := NamePrefix + IntToStr(i);
    with TEdit(FindComponent(NamePrefix + IntToStr(i))) do
    begin
      Left := 10;
      Top := i * 20;
      Parent := self;
    end;
  end;
end;
Lo de self no lo entiendo, pero bueno, de todas formas muy agradecido.
Responder Con Cita