我自已自定义一类
但是每次调用的时候总是出现以下错误:
[Fatal Error] uAppTools.pas(19): Could not compile used unit 'E:\test\uClasses\uSystem.pas'类定义如下:
unit uSystem;interfaceuses
Windows, Classes, Messages, Controls, SysUtils ;type
TSystemData = class
private
FCopyright: String ;
FZeroRecord: Boolean ; //空记录
FSystemBound: Boolean ; //系统锁定
FPermssion: String ; procedure SetZeroRecord(Const Value: Boolean);
procedure SetSystemBound(Const Value: Boolean);
procedure SetPermssion(Const Value: String);
protected
public
constructor Create; virtual;
destructor Destroy; override; property ZeroRecord : Boolean read FZeroRecord write SetZeroRecord ;
property SystemBound : Boolean read FSystemBound write SetSystemBound ;
property Permssion : String read FPermssion write SetPermssion ;
end;
implementationconst
AppCopyright: String = 'SHPGET123' ;{ TSystemData }
constructor TSystemData.Create;
begin
FCopyright:= 'SHPGET123' ;
FZeroRecord:= True ;
FSystemBound:= True ;
FPermssion:= '' ;
end;destructor TSystemData.Destroy;
begin inherited;
end;procedure TSystemData.SetPermssion(const Value: String);
begin
if (FPermssion <> Value) AND (FCopyright = AppCopyright) then
FPermssion:= Value ;
end;procedure TSystemData.SetSystemBound(const Value: Boolean);
begin
if (FSystemBound <> Value) AND (FCopyright = AppCopyright) then
FSystemBound:= Value ;
end;procedure TSystemData.SetZeroRecord(const Value: Boolean);
begin
if (FZeroRecord <> Value) AND (FCopyright = AppCopyright) then
FZeroRecord:= Value ;
end;end.
但是每次调用的时候总是出现以下错误:
[Fatal Error] uAppTools.pas(19): Could not compile used unit 'E:\test\uClasses\uSystem.pas'类定义如下:
unit uSystem;interfaceuses
Windows, Classes, Messages, Controls, SysUtils ;type
TSystemData = class
private
FCopyright: String ;
FZeroRecord: Boolean ; //空记录
FSystemBound: Boolean ; //系统锁定
FPermssion: String ; procedure SetZeroRecord(Const Value: Boolean);
procedure SetSystemBound(Const Value: Boolean);
procedure SetPermssion(Const Value: String);
protected
public
constructor Create; virtual;
destructor Destroy; override; property ZeroRecord : Boolean read FZeroRecord write SetZeroRecord ;
property SystemBound : Boolean read FSystemBound write SetSystemBound ;
property Permssion : String read FPermssion write SetPermssion ;
end;
implementationconst
AppCopyright: String = 'SHPGET123' ;{ TSystemData }
constructor TSystemData.Create;
begin
FCopyright:= 'SHPGET123' ;
FZeroRecord:= True ;
FSystemBound:= True ;
FPermssion:= '' ;
end;destructor TSystemData.Destroy;
begin inherited;
end;procedure TSystemData.SetPermssion(const Value: String);
begin
if (FPermssion <> Value) AND (FCopyright = AppCopyright) then
FPermssion:= Value ;
end;procedure TSystemData.SetSystemBound(const Value: Boolean);
begin
if (FSystemBound <> Value) AND (FCopyright = AppCopyright) then
FSystemBound:= Value ;
end;procedure TSystemData.SetZeroRecord(const Value: Boolean);
begin
if (FZeroRecord <> Value) AND (FCopyright = AppCopyright) then
FZeroRecord:= Value ;
end;end.
解决方案 »
- delphi base64编码图片字符串转化图片显示IMAGE
- 摄像头的YUV2图像转RGB保存
- dbGridEh里面的TreeView怎么实现?
- 我想在combobox1选择显示:编号=姓名,然后插入数据库只插入其中的编号,如何实现
- 招聘DELPHI程序员,南京工作!待遇面议
- 关于DCOMConnection的问题。。
- fastreport中修改字体时的问题
- 谁有存储过程,触发器的例子,发给我看看!!!
- 求版主别删!有谁认为论坛的新版本比原来的好?怎么觉得这么别扭?好多页都打不开了,连专家分都看不到了!!!真败了!!!
- DELPHI7使用的ExpressQuantumGrid最新版本是多少?
- 哪里有Delphi7.1下载????
- 散分去霉气
SystemInfo: TSystemData ;SystemInfo:= TSystemData.Create ;但不知为什么总是出错误!