有谁知道我下面的代码哪里错了啊??(50分)

  • 主题发起人 主题发起人 migis
  • 开始时间 开始时间
M

migis

Unregistered / Unconfirmed
GUEST, unregistred user!
program ysysoft;

uses
Forms,
Unit1 in 'Unit1.pas' {frm_main},
Unit2 in 'Unit2.pas' {frm_wh},
Unit3 in 'Unit3.pas' {frm_lr},
Unit4 in 'Unit4.pas' {frm_ll},
Unit5 in 'Unit5.pas' {frm_px},
Unit6 in 'Unit6.pas' {frm_cxmain},

{$R *.res}

begin
Application.Initialize;
Application.CreateForm(Tfrm_main, frm_main);
Application.CreateForm(Tfrm_wh, frm_wh);
Application.CreateForm(Tfrm_lr, frm_lr);
Application.CreateForm(Tfrm_ll, frm_ll);
Application.CreateForm(Tfrm_px, frm_px);
Application.CreateForm(Tfrm_cxmain, frm_cxmain);
Application.Run;
end.
错误提示是:
[Error] ysysoft.dpr(14): Identifier expected but 'BEGIN' found
 
faint,
>> Unit6 in 'Unit6.pas' {frm_cxmain},
~~~
应该是分号;
 
最后一个,是;
 
uses
Forms,
Unit1 in 'Unit1.pas' {frm_main},
Unit2 in 'Unit2.pas' {frm_wh},
Unit3 in 'Unit3.pas' {frm_lr},
Unit4 in 'Unit4.pas' {frm_ll},
Unit5 in 'Unit5.pas' {frm_px},
Unit6 in 'Unit6.pas' {frm_cxmain}, //这里的逗号改成分号,老大!
 
program ysysoft;

uses
Forms,
Unit1 in 'Unit1.pas' {frm_main},
Unit2 in 'Unit2.pas' {frm_wh},
Unit3 in 'Unit3.pas' {frm_lr},
Unit4 in 'Unit4.pas' {frm_ll},
Unit5 in 'Unit5.pas' {frm_px},
Unit6 in 'Unit6.pas' {frm_cxmain},//看这句的‘,’,改为':'(分号)

{$R *.res}

begin
Application.Initialize;
Application.CreateForm(Tfrm_main, frm_main);
Application.CreateForm(Tfrm_wh, frm_wh);
Application.CreateForm(Tfrm_lr, frm_lr);
Application.CreateForm(Tfrm_ll, frm_ll);
Application.CreateForm(Tfrm_px, frm_px);
Application.CreateForm(Tfrm_cxmain, frm_cxmain);
Application.Run;
end.
 
为什么大家的发贴时间都是 2001-12-14 20:09:00, 我的排在最后??
 
楼上的已经答了。
我只想说:
这么多Application.CreateForm
浪费资源!!!
 
因为它的秒永远是00,呵呵
 
谢谢了,这四位我把50分平均给你们了。
 
后退
顶部