急!Delphi7在最后运行时出现问题
我制作了一个Delphi小程序,可是在运行时Project出现了如下错误,怎么改?请高手帮帮我,谢谢!错误如下:[Error]Project1.dpr(17):Ident...
我制作了一个Delphi小程序,可是在运行时Project出现了如下错误,怎么改?请高手帮帮我,谢谢!
错误如下:
[Error]Project1.dpr(17):Identifier expected but'BEGIN'found
[Error]Project1.dpr(18):Undeclared identifier:'Application'
[Error]Project1.dpr(18):Missing operator or semicolon
[Error]Project1.dpr(19):Missing operator or semicolon
[Error]Project1.dpr(19):Undeclared identifier:'TForm1'
........(中间的错误和前两行一样,这里写不下了,
只是19换成20 21 21 22 23 24 .TForm1换成TForm2,TForm3,TForm4,TForm5,TForm6)
[Error]Project1.dpr(25):Missing operator or semicolon
[Error]Project1.dpr(25):Undeclared identifier:'TForm7'
[Error]Project1.dpr(27):Missing operator or semicolon
代码如下:
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {Form2},
Unit3 in 'Unit3.pas' {Form3},
Unit4 in 'Unit4.pas' {Form4},
Unit5 in 'Unit5.pas' {Form5},
Unit6 in 'Unit6.pas' {Form6},
Unit7 in 'Unit7.pas' {Form7},
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
Application.CreateForm(TForm3, Form3);
Application.CreateForm(TForm4, Form4);
Application.CreateForm(TForm5, Form5);
Application.CreateForm(TForm6, Form6);
Application.CreateForm(TForm7, Form7);
Application.Run;
end. 展开
错误如下:
[Error]Project1.dpr(17):Identifier expected but'BEGIN'found
[Error]Project1.dpr(18):Undeclared identifier:'Application'
[Error]Project1.dpr(18):Missing operator or semicolon
[Error]Project1.dpr(19):Missing operator or semicolon
[Error]Project1.dpr(19):Undeclared identifier:'TForm1'
........(中间的错误和前两行一样,这里写不下了,
只是19换成20 21 21 22 23 24 .TForm1换成TForm2,TForm3,TForm4,TForm5,TForm6)
[Error]Project1.dpr(25):Missing operator or semicolon
[Error]Project1.dpr(25):Undeclared identifier:'TForm7'
[Error]Project1.dpr(27):Missing operator or semicolon
代码如下:
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {Form2},
Unit3 in 'Unit3.pas' {Form3},
Unit4 in 'Unit4.pas' {Form4},
Unit5 in 'Unit5.pas' {Form5},
Unit6 in 'Unit6.pas' {Form6},
Unit7 in 'Unit7.pas' {Form7},
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
Application.CreateForm(TForm3, Form3);
Application.CreateForm(TForm4, Form4);
Application.CreateForm(TForm5, Form5);
Application.CreateForm(TForm6, Form6);
Application.CreateForm(TForm7, Form7);
Application.Run;
end. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询