hice el primer ejemplo y sirvio pero el segundo da error e hice todo lo que pusiste al pie de la letra
mira mi codificacion
Código Delphi
[-]
program Project1;
uses
Forms,
windows,
Unit1 in 'Unit1.pas' ,
Unit2 in 'Unit2.pas' ,
Unit3 in 'Unit3.pas' ,
Unit4 in 'Unit4.pas' ;
Delay = 500;
MaxForms = 3;
{$R *.res}
begin
Application.Initialize;
Logo:= TLogo.Create(nil);
Logo.ProgressBar1.Max:= MaxForms;
Logo.Update;
Logo.ProgressBar1.StepIt; Sleep(Delay);
Application.CreateForm(TForm1, Form1);
Logo.ProgressBar1.StepIt; Sleep(Delay);
Application.CreateForm(TForm3, Form3);
Logo.ProgressBar1.StepIt; Sleep(Delay);
Application.CreateForm(TForm4, Form4);
Logo.ProgressBar1.StepIt; Sleep(Delay);
Logo.Free;
Application.Run;
end.
errrores
[Error] Project1.dpr(11): Declaration expected but identifier 'Delay' found
[Error] Project1.dpr(19): Undeclared identifier: 'MaxForms'
[Error] Project1.dpr(21): Undeclared identifier: 'Delay'