最近我调试的时候出现了这样的问题?谁能回答我啊?(10分)

  • 主题发起人 主题发起人 dreameast-1
  • 开始时间 开始时间
D

dreameast-1

Unregistered / Unconfirmed
GUEST, unregistred user!
[Error] Unit1.pas(10): Declaration expected but identifier 'Windows' found
[Error] Unit1.pas(15): Undeclared identifier: 'TForm'
[Fatal Error] Unit1.pas(132): Could not compile used unit 'Unitform_salary.pas'
 
1.要求说明
2.TForm没定义:不会吧?
3.由于以上两个错误,导致程序不能编译
 
我的代码如下:你看如何解决啊
unit Unit1;
interface
uses
unit2, unitform_sex,unitform_date,
ImgList, Controls, Series, DbChart,
TeEngine, TeeProcs, Chart, Buttons, StdCtrls, Grids, DBGrids, ComCtrls,
Mask, DBCtrls, ExtCtrls, ToolWin, Classes;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, ToolWin, ImgList, ExtCtrls, Mask,
DBCtrls, Grids, DBGrids, TeEngine, Series, TeeProcs, Chart, DbChart,db,
 
unit Unit1;
interface
uses
unit2, unitform_sex,unitform_date,
ImgList, Controls, Series, DbChart,
TeEngine, TeeProcs, Chart, Buttons, StdCtrls, Grids, DBGrids, ComCtrls,
Mask, DBCtrls, ExtCtrls, ToolWin, Classes,//这里是, 不是 ;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, ToolWin, ImgList, ExtCtrls, Mask,
DBCtrls, Grids, DBGrids, TeEngine, Series, TeeProcs, Chart, DbChart,db,
 
可是有出现了 以下错误啊:还有use中的引用不能重复么?
[Error] Unit1.pas(13): Identifier expected but 'TYPE' found
[Fatal Error] Unit1.pas(131): Could not compile used unit 'Unitform_salary.pas'
 
有谁能回答我的问题啊!!!!!!
 
uses
unit2, unitform_sex,unitform_date,
ImgList, Controls, Series, DbChart,
TeEngine, TeeProcs, Chart, Buttons, StdCtrls, Grids, DBGrids, ComCtrls,
Mask, DBCtrls, ExtCtrls, ToolWin, Classes,//这里是, 不是 ;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, ToolWin, ImgList, ExtCtrls, Mask,
DBCtrls, Grids, DBGrids, TeEngine, Series, TeeProcs, Chart, DbChart,db,//这里不要逗号,用分号
 
多人接受答案了。
 

Similar threads

I
回复
0
查看
2K
import
I
I
回复
0
查看
771
import
I
I
回复
0
查看
3K
import
I
I
回复
0
查看
948
import
I
I
回复
0
查看
843
import
I
后退
顶部