第一天学delphi,解决就给分,在线等
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TFMainForm= class(TForm)
procedure FormClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FMainForm TFMainForm
implementation
uses Unit2;
{$R *.dfm}
procedure TFMainFormFormClick(Sender: TObject);
begin
SubForm.show;//显示子窗体
end;
end.
这个是delphi自动生成的代码,请问那里错了,
我在书上看见,从一个类创建对象的语法是:
var
MyObj:TMyClass;
但是为什么delphi自动生成 的是
var
FMainForm TFMainForm
?????