我想传一个FormID的参数进去,
于是在public中加上(从新变更了create方法)
constructor Create(AOwner: TComponent;FormID: Integer);reintroduce;overload;
该form是个父类,子类继承了,在实例化后,就是在该窗体show的时候(form1.show),报异常。
constructor TBasicAnlayFrm.Create(AOwner:TComponent;FormID: Integer);
begin
ChildFormID := FormID; //可正常运行
end; //跳出debug的窗口,异常了
于是在public中加上(从新变更了create方法)
constructor Create(AOwner: TComponent;FormID: Integer);reintroduce;overload;
该form是个父类,子类继承了,在实例化后,就是在该窗体show的时候(form1.show),报异常。
constructor TBasicAnlayFrm.Create(AOwner:TComponent;FormID: Integer);
begin
ChildFormID := FormID; //可正常运行
end; //跳出debug的窗口,异常了
解决方案 »
- Delphi服务器端Socket组件IO性能怎么样?
- 谁有delphi 军旗源码,借我一份
- ACCESS数据库查询问题(SQL)?
- 发布一款多sheet、支持xml、导出excel、能够用于AJAX技术的、免费的、高品质的Grid控件!
- 繁简体转换
- vcl60.bpl at 0003e496????
- 制作安装程序
- 已经安装过FAST REPORT很多次了,但今天去别人单位竟然安装不上,老提示什么'VCL' not found
- delphi 中的报表问题,小小问题,来者不拒!!!!!
- 如何在delphi中实现TDBComboBox从一个编码表中读数据!!!!!
- 类似Winrar拖放
- 在程序里如何通过麦克风录音,并保存为mp3文件?
constructor CreateLogin(Owner: TComponent;Flag:integer);//第二个参数为自己加入的标志参数constructor TfrmLogin.CreateLogin(Owner: TComponent;Flag:integer);
begin
inherited Create(Owner);
FFlag:=Flag;
end;调用
frmLogin:=TFrmLogin.CreateLogin(Application,0);//此处第一个参数还可以为self,nil根据需要而定
begin
Inherited Create(AOwner);
ChildFormID := FormID; //タ盽?︽
end;試下這樣
不过楼主...