Aplicando la opción de Lepe, hice lo siguiente:
Código Delphi
[-]procedure TFMain.FormCreate(Sender: TObject);
begin
ZCanciones.Open;
ZCanciones.First;
While Not ZCanciones.Eof do
begin
with TFrame1.Create(Application) do
begin
MuID.Caption := ZCancionesMA_ID.AsString;
MuArtista.Caption := ZCancionesARTISTA.AsString+' - '+ZCancionesALBUM.AsString;
Image1.Picture.LoadFromFile(ZCancionesIMAGEN.AsString);
Parent := SCrollBox1;
Left := 2 + (Width * (ScrollBox1.ControlCount - 1));
Top := 0;
end;
ZCanciones.Next;
end;
end;
Problema:
Cita:
---------------------------
Debugger Exception Notification
---------------------------
Project Vellonera.exe raised exception class EComponentError with message 'A component named Frame1 already exists'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
|
¿Cómo resuelvo esto
?
Saludos.