type
TForm1 = class
public
constructor Create(TableName:string); overload;
end;提示警告:
Method 'Create' hides virtual method of base type 'TCustomForm'怎样消除该警告?用override,overload,virtual,abstract等都不行
TForm1 = class
public
constructor Create(TableName:string); overload;
end;提示警告:
Method 'Create' hides virtual method of base type 'TCustomForm'怎样消除该警告?用override,overload,virtual,abstract等都不行
解决方案 »
- is,as操作符判断接口
- 谁提供个delphi 2005的下载页面
- 怎样给richedit边框画成黑线?(在线)
- 用批处理可以删除文件夹吗?
- Ladies and gentlemen: 谁用过TMs Async32控件包(串口开发)中的VaTernimal控件啊!帮忙啊!
- 开发基于广域网的程序,怎样开发,我是小菜,多多指教
- 求介绍DELPHI函数跟类比较详细的书籍。。
- lunux与delphi,大家来讨论吧。
- edit的值写到表里的问题.
- 关于返回CheckBox的选项,有什么简化的方法吗?
- 请问,如何获取一个数据表中所有字段的名称
- 如何使一个窗体存在时总是处于最上面,不能用showmodal。
应该用override,而且你的原型不正确.
下面这个不知道对你是否有用.呵呵,肯定没有错误信息.
procedure CreateWnd; override;
implementation
procedure TForm1.CreateWnd;
begin
//
end;
constructor Create(TableName:string);reintroduce;可以啊
TForm1 = class(TForm)
public
constructor MyCreate(TableName:string);
end;
哈哈,给分吧.
constructor Create(AOwner: TComponent);override;
implementation{$R *.dfm}
Constructor TForm1.Create(AOwner: TComponent);
begin
//
end;
constructor Create(AOwner: TComponent);reintroduce;overload;
Constructor TForm1.Create(AOwner: TComponent);
begin
//
inherited;
showmessage('Create');
end;
根本不执行showmessage,如果是override就可以.
宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
————————————————————————————————————
宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
————————————————————————————————————
宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
————————————————————————————————————
不加也没有关系,但是看到有警告出现心里不舒服。