delphi报[Error] Unit1.pas(37): '.' expected but ';' found
我的源码在这里
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses Unit2;
{$R *.dfm}
var
a:Tmember;
begin
a:=Tmember.Create;
a.Name:='zhy';
a.Age:=20;
a.Male:=false;
end; //就是这里报错
procedure TForm1.Button1Click(Sender: TObject);
begin
Label1.Caption:='afsdf';
end;
end.