小弟求学心切求解析一段Delphi代码,小弟初学Delphi什么都不懂麻烦帮我一句一句的解析,多谢了
unit Unit1;
interface
uses
   windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,  Forms, Dialogs;
type
   TForm1=class(TForm)
     Procedure FormCreate(Sender:Tobject);
Private
{Private declarations}
public
   {Pbulic declarations}
end;
var
   Form1; TForm1;
Implementation
{$R*.dfm}
procedure TForm1.FormCreate(Sender; TObject);
begin
     Self.Caption:=’主窗体’;
End;
End;

解决方案 »

  1.   

    Self.Caption:=’主窗体’;即  Form1.Caption:=’主窗体’;
      

  2.   

    今天晚上通宵
    我来解释吧
    ---------------
    unit Unit1;
    //单元名字
    interface
    //接口开始
    uses
       windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,  Forms, Dialogs;
    //主要用到的单元,相当于头文件include
    type
       TForm1=class(TForm)
         Procedure FormCreate(Sender:Tobject);
    Private
    {Private declarations}
    public
       {Pbulic declarations}
    end;
    //上面定义窗体类,包括窗体中的组件和操作等
    var
       Form1; TForm1;
    Implementation
    //主要操作开始
    {$R*.dfm}
    procedure TForm1.FormCreate(Sender; TObject);
    //一个事件,在窗体生成是触发
    begin
         Self.Caption:=’主窗体’;
    //功能是改变窗体名称
    End;
    End;
    //完毕
      

  3.   

    介意你买本delphi基础的书来看
    什么都清楚了